3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test(){ $x = array( 'first' => 'a', 'second' => 'y', 'thrid' => 'z' ); foreach ($x as $key=>$value){ $value += 'f'; } return $x; } $y = test(); echo $y['first'];

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.0160.01018.43
8.3.50.0060.00917.77
8.3.40.0110.00418.69
8.3.30.0090.00918.97
8.3.20.0000.00720.20
8.3.10.0000.00820.64
8.3.00.0000.00823.61
8.2.180.0110.00416.75
8.2.170.0060.00922.96
8.2.160.0120.00619.42
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00421.12
8.2.120.0060.00326.35
8.2.110.0060.00319.26
8.2.100.0080.00318.04
8.2.90.0000.00719.20
8.2.80.0040.00417.97
8.2.70.0090.00017.75
8.2.60.0040.00417.93
8.2.50.0000.00918.09
8.2.40.0040.00420.39
8.2.30.0050.00319.51
8.2.20.0050.00217.81
8.2.10.0040.00418.13
8.2.00.0040.00418.16
8.1.280.0090.00625.92
8.1.270.0000.00822.02
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0050.00522.20
8.1.230.0100.00017.55
8.1.220.0000.00817.74
8.1.210.0000.00918.77
8.1.200.0090.00017.35
8.1.190.0050.00317.35
8.1.180.0050.00318.10
8.1.170.0090.00318.43
8.1.160.0040.00420.80
8.1.150.0000.00718.89
8.1.140.0040.00419.62
8.1.130.0040.00417.62
8.1.120.0050.00217.34
8.1.110.0040.00417.45
8.1.100.0060.00317.50
8.1.90.0000.00717.51
8.1.80.0020.00517.42
8.1.70.0030.00317.51
8.1.60.0000.00917.60
8.1.50.0050.00317.54
8.1.40.0050.00317.49
8.1.30.0090.00017.49
8.1.20.0060.00317.57
8.1.10.0070.00017.55
8.1.00.0060.00317.53
8.0.300.0040.00418.77
8.0.290.0070.00016.88
8.0.280.0000.00718.43
8.0.270.0070.00017.17
8.0.260.0030.00317.20
8.0.250.0060.00316.98
8.0.240.0040.00417.02
8.0.230.0000.00717.04
8.0.220.0030.00316.93
8.0.210.0030.00516.93
8.0.200.0030.00317.04
8.0.190.0040.00416.92
8.0.180.0070.00016.95
8.0.170.0040.00416.96
8.0.160.0020.00516.91
8.0.150.0070.00016.94
8.0.140.0030.00416.73
8.0.130.0040.00413.43
8.0.120.0000.00816.80
8.0.110.0050.00316.96
8.0.100.0000.00716.93
8.0.90.0040.00416.85
8.0.80.0060.00916.89
8.0.70.0040.00416.93
8.0.60.0040.00416.79
8.0.50.0050.00316.91
8.0.30.0100.01017.04
8.0.20.0090.00917.40
8.0.10.0030.00316.91
8.0.00.0130.00616.83
7.4.330.0020.00216.83
7.4.320.0040.00416.63
7.4.300.0000.00616.57
7.4.290.0070.00016.49
7.4.280.0020.00516.50
7.4.270.0000.00716.50
7.4.260.0000.00816.39
7.4.250.0000.00816.37
7.4.240.0000.00716.52
7.4.230.0000.00716.60
7.4.220.0120.00616.64
7.4.210.0070.00916.57
7.4.200.0000.00716.64
7.4.160.0040.01216.58
7.4.150.0060.01217.40
7.4.140.0100.01017.86
7.4.130.0130.00416.49
7.4.120.0130.00516.50
7.4.110.0130.00416.63
7.4.100.0090.00916.59
7.4.90.0120.00616.41
7.4.80.0030.01419.39
7.4.70.0080.00816.59
7.4.60.0060.00916.51
7.4.50.0070.00716.48
7.4.40.0100.00716.41
7.4.30.0070.01016.43
7.4.00.0120.00314.94
7.3.330.0030.00313.43
7.3.320.0030.00413.30
7.3.310.0030.00316.39
7.3.300.0000.00716.43
7.3.290.0030.00316.25
7.3.280.0110.00916.38
7.3.270.0070.01017.40
7.3.260.0100.00716.56
7.3.250.0100.00816.38
7.3.240.0120.00516.39
7.3.230.0100.00716.59
7.3.210.0090.00916.64
7.3.200.0030.01316.37
7.3.190.0080.00816.54
7.3.180.0160.00016.43
7.3.170.0030.01316.34
7.3.160.0060.00916.54
7.2.330.0110.00916.88
7.2.320.0060.01116.77
7.2.310.0130.00316.78
7.2.300.0110.01116.68
7.2.290.0160.00016.53
7.2.60.0120.00417.01
7.2.00.0100.00319.61
7.1.200.0030.01015.82
7.1.100.0030.00818.20
7.1.70.0050.00317.04
7.1.60.0100.01319.19
7.1.50.0100.00316.63
7.1.00.0070.07322.41
7.0.200.0480.00414.39
7.0.60.0170.07721.73
7.0.50.0000.04317.83
7.0.40.0030.05319.96
7.0.30.0330.07020.34
7.0.20.0230.05020.02
7.0.10.0070.04020.33
7.0.00.0070.07720.16
5.6.280.0070.05721.07
5.6.210.0070.07720.70
5.6.200.0070.08018.18
5.6.190.0100.08320.46
5.6.180.0300.07720.50
5.6.170.0230.06720.57
5.6.160.0100.08020.44
5.6.150.0100.04318.15
5.6.140.0030.07018.11
5.6.130.0070.05318.18
5.6.120.0000.04720.99
5.6.110.0170.07721.18
5.6.100.0070.08020.89
5.6.90.0030.04320.97
5.6.80.0100.05020.38
5.5.350.0330.04320.41
5.5.340.0030.04317.96
5.5.330.0030.05020.43
5.5.320.0700.06020.27
5.5.310.0200.04720.34
5.5.300.0030.05017.94
5.5.290.0130.07717.99
5.5.280.0030.05320.69
5.5.270.0100.05720.73
5.5.260.0130.07320.65
5.5.250.0000.04320.59
5.5.240.0000.08320.36

preferences:
51.17 ms | 401 KiB | 5 Q