3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo($reset = false) { static $data = array( array('site_name' => 'bar'), array(), array('site_name' => 'baz') ); if ($reset) { reset($data); return; } $current = current($data); next($data); return $current; } while ($bar = foo()) echo $bar['site_name']."\n"; foo(true); echo '-------------------------------------------'."\n"; while (($bar = foo()) !== false) echo $bar['site_name']."\n";

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0060.01018.30
8.3.50.0140.00621.87
8.3.40.0030.01718.79
8.3.30.0100.00719.13
8.3.20.0070.00020.33
8.3.10.0000.00922.10
8.3.00.0060.01222.46
8.2.180.0130.00316.50
8.2.170.0140.00022.96
8.2.160.0090.00620.90
8.2.150.0070.00024.18
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0040.00417.63
8.2.110.0060.00322.22
8.2.100.0070.00419.57
8.2.90.0000.00819.39
8.2.80.0000.00817.97
8.2.70.0050.00317.63
8.2.60.0000.00918.03
8.2.50.0040.00418.07
8.2.40.0110.00018.22
8.2.30.0030.00618.00
8.2.20.0040.00417.85
8.2.10.0000.00819.60
8.2.00.0040.00417.91
8.1.280.0140.00325.92
8.1.270.0120.00323.85
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0080.00823.96
8.1.230.0110.00019.05
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0100.00017.10
8.1.190.0040.00417.28
8.1.180.0040.00418.53
8.1.170.0060.00318.52
8.1.160.0000.00722.10
8.1.150.0060.00318.61
8.1.140.0040.00417.45
8.1.130.0000.00717.79
8.1.120.0040.00417.38
8.1.110.0030.00617.38
8.1.100.0030.00417.35
8.1.90.0030.00317.34
8.1.80.0000.00717.50
8.1.70.0030.00317.36
8.1.60.0000.00817.58
8.1.50.0000.00717.57
8.1.40.0040.00417.57
8.1.30.0050.00217.61
8.1.20.0000.00817.59
8.1.10.0020.00517.59
8.1.00.0030.00517.49
8.0.300.0070.00018.77
8.0.290.0030.00317.16
8.0.280.0000.00718.49
8.0.270.0000.00817.18
8.0.260.0030.00316.89
8.0.250.0070.00017.07
8.0.240.0030.00317.05
8.0.230.0070.00016.90
8.0.220.0000.00716.82
8.0.210.0030.00316.85
8.0.200.0070.00016.90
8.0.190.0050.00316.91
8.0.180.0000.00717.04
8.0.170.0000.00716.87
8.0.160.0050.00316.91
8.0.150.0000.00816.88
8.0.140.0030.00516.91
8.0.130.0000.00513.35
8.0.120.0000.00816.83
8.0.110.0040.00416.99
8.0.100.0040.00416.79
8.0.90.0030.00516.91
8.0.80.0030.01217.00
8.0.70.0050.00317.01
8.0.60.0070.00016.82
8.0.50.0030.00516.84
8.0.30.0080.01417.19
8.0.20.0110.00817.40
8.0.10.0000.00717.08
8.0.00.0110.01016.68
7.4.330.0050.00015.01
7.4.320.0000.00616.43
7.4.300.0030.00316.55
7.4.290.0070.00016.63
7.4.280.0000.00716.61
7.4.270.0000.00816.60
7.4.260.0000.00716.47
7.4.250.0000.00716.46
7.4.240.0040.00416.53
7.4.230.0030.00516.35
7.4.220.0130.00316.61
7.4.210.0110.00516.54
7.4.200.0000.00716.70
7.4.190.0030.00316.76
7.4.160.0100.00716.48
7.4.150.0120.00617.40
7.4.140.0100.00817.86
7.4.130.0080.01116.53
7.4.120.0130.00616.61
7.4.110.0100.00716.39
7.4.100.0130.01016.71
7.4.90.0130.00316.62
7.4.80.0080.00819.39
7.4.70.0060.01016.45
7.4.60.0120.00616.54
7.4.50.0030.00516.43
7.4.40.0030.00622.77
7.4.30.0100.00716.48
7.4.00.0000.00914.95
7.3.330.0000.00513.37
7.3.320.0000.00513.33
7.3.310.0070.00016.32
7.3.300.0000.00916.41
7.3.290.0070.00716.32
7.3.280.0070.01016.25
7.3.270.0080.00817.40
7.3.260.0110.01116.38
7.3.250.0060.01116.49
7.3.240.0140.00316.41
7.3.230.0210.00516.39
7.3.210.0120.00616.23
7.3.200.0000.01719.39
7.3.190.0170.00016.44
7.3.180.0150.00416.47
7.3.170.0030.01216.37
7.3.160.0030.01316.37
7.3.120.0150.00014.82
7.3.10.0060.00616.68
7.3.00.0030.01216.45
7.2.330.0110.00716.86
7.2.320.0040.01316.68
7.2.310.0130.00416.53
7.2.300.0110.00516.90
7.2.290.0120.00316.52
7.2.130.0100.00617.07
7.2.120.0030.01316.91
7.2.110.0070.00716.96
7.2.100.0060.00616.96
7.2.90.0040.00416.76
7.2.80.0070.00717.00
7.2.70.0080.00316.88
7.2.60.0070.00416.76
7.2.50.0040.01216.85
7.2.40.0030.00616.92
7.2.30.0070.00716.85
7.2.20.0090.00316.73
7.2.10.0040.00717.18
7.2.00.0110.00316.92
7.1.250.0000.01515.70
7.1.200.0080.00615.57
7.1.70.0000.00717.18
7.1.60.0000.02319.82
7.1.50.0090.01216.78
7.1.00.0070.07022.32
7.0.200.0000.01416.82
7.0.140.0070.07022.21
7.0.60.0070.07019.88
7.0.50.0070.05017.87
7.0.40.0070.06320.40
7.0.30.0400.06720.11
7.0.20.0270.08020.23
7.0.10.0000.05020.26
7.0.00.0000.09320.11
5.6.280.0070.07020.93
5.6.210.0200.07320.67
5.6.200.0000.07018.22
5.6.190.0070.09020.61
5.6.180.0570.06020.43
5.6.170.0230.05320.55
5.6.160.0000.04320.56
5.6.150.0130.06318.12
5.6.140.0000.04318.27
5.6.130.0100.06018.15
5.6.120.0070.08721.00
5.6.110.0030.06321.00
5.6.100.0100.07321.11
5.6.90.0100.06021.08
5.6.80.0100.07720.47
5.5.350.0000.04720.40
5.5.340.0000.08717.93
5.5.330.0070.04020.41
5.5.320.0400.06720.38
5.5.310.0300.07720.34
5.5.300.0070.04318.02
5.5.290.0070.05717.97
5.5.280.0030.04720.77
5.5.270.0100.05320.69
5.5.260.0030.04020.88
5.5.250.0100.06320.61
5.5.240.0000.05020.13
5.4.450.0170.03719.20
5.4.440.0230.05319.20
5.4.430.0230.06719.16
5.4.420.0130.07019.40
5.4.410.0130.05019.19
5.4.400.0270.06719.22
5.4.390.0030.03719.11
5.4.380.0330.03319.22
5.4.370.0300.03719.09
5.4.360.0270.06719.31
5.4.350.0470.07019.21
5.4.340.0270.07019.06
5.4.320.0370.05719.22
5.4.310.0330.03319.15
5.4.300.0330.03719.31
5.4.290.0600.05319.22
5.4.280.0430.03318.87
5.4.270.2770.03319.19
5.4.260.0030.05719.02
5.4.250.0070.07718.86
5.4.240.0130.04718.95
5.4.230.0200.06018.75
5.4.220.0200.06719.00
5.4.210.0100.05718.97
5.4.200.0170.05018.80
5.4.190.0030.05719.07
5.4.180.0070.05319.02
5.4.170.0200.04018.74
5.4.160.0030.05718.99
5.4.150.0170.07018.82
5.4.140.0170.05716.55
5.4.130.0070.05016.55
5.4.120.0100.04716.45
5.4.110.0030.05316.55
5.4.100.0030.07316.55
5.4.90.0100.07016.50
5.4.80.0130.04316.37
5.4.70.0130.05316.41
5.4.60.0070.05016.63
5.4.50.0100.06716.34
5.4.40.0000.06316.54
5.4.30.0170.04016.34
5.4.20.0130.04316.44
5.4.10.0000.06316.47
5.4.00.0100.05016.00
5.3.290.3700.03314.67
5.3.280.0200.06014.59
5.3.270.0070.06014.69
5.3.260.0070.05714.62
5.3.250.0070.06314.75
5.3.240.0100.04714.58
5.3.230.0200.04314.68
5.3.220.0070.07714.40
5.3.210.0030.06014.57
5.3.200.0100.06014.79
5.3.190.0100.07314.39
5.3.180.0130.05014.39
5.3.170.0100.05014.74
5.3.160.0100.05314.70
5.3.150.0000.06314.65
5.3.140.0030.06314.62
5.3.130.0070.05714.77
5.3.120.0030.06314.53
5.3.110.0130.06714.45
5.3.100.0030.06014.14
5.3.90.0000.08314.07
5.3.80.0100.05014.02
5.3.70.0100.06314.00
5.3.60.0030.07314.01
5.3.50.0100.04713.93
5.3.40.0100.06714.11
5.3.30.0030.05013.99
5.3.20.0200.05313.66
5.3.10.0100.04313.73
5.3.00.0130.04313.71

preferences:
39.75 ms | 401 KiB | 5 Q