3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo array_reduce(['a', 'b', 'c'], function($output, $item) { static $count = 0; return $output . ++$count . '. ' . $item . "\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.80.0060.00316.50
8.3.70.0130.00616.75
8.3.60.0070.00718.55
8.3.50.0140.00318.38
8.3.40.0070.01022.07
8.3.30.0070.01019.18
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.200.0040.00816.63
8.2.190.0100.01016.75
8.2.180.0050.01025.92
8.2.170.0110.00418.97
8.2.160.0090.00922.96
8.2.150.0000.00725.66
8.2.140.0060.00324.66
8.2.130.0070.00026.16
8.2.120.0000.00819.96
8.2.110.0040.00719.39
8.2.100.0040.00717.91
8.2.90.0040.00419.05
8.2.80.0050.00317.97
8.2.70.0050.00317.63
8.2.60.0000.00917.92
8.2.50.0050.00318.07
8.2.40.0000.00918.29
8.2.30.0000.00818.11
8.2.20.0070.00020.43
8.2.10.0040.00418.03
8.2.00.0040.00419.18
8.1.290.0070.00330.84
8.1.280.0140.00725.92
8.1.270.0050.00323.99
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0090.00022.68
8.1.230.0000.01218.89
8.1.220.0000.00917.76
8.1.210.0030.00518.77
8.1.200.0030.00617.35
8.1.190.0000.00817.36
8.1.180.0030.00618.10
8.1.170.0080.00018.77
8.1.160.0040.00418.80
8.1.150.0060.00318.68
8.1.140.0060.00317.45
8.1.130.0030.00617.46
8.1.120.0030.00617.45
8.1.110.0040.00417.44
8.1.100.0040.00417.45
8.1.90.0050.00317.52
8.1.80.0030.00617.50
8.1.70.0030.00317.34
8.1.60.0100.00517.55
8.1.50.0140.00317.38
8.1.40.0120.00317.43
8.1.30.0110.00417.61
8.1.20.0130.00417.59
8.1.10.0080.00617.49
8.1.00.0090.00417.43
8.0.300.0040.00418.77
8.0.290.0000.00916.75
8.0.280.0040.00418.44
8.0.270.0040.00416.83
8.0.260.0030.00316.77
8.0.250.0040.00416.92
8.0.240.0040.00416.91
8.0.230.0040.00416.91
8.0.220.0000.00716.82
8.0.210.0000.00716.80
8.0.200.0000.00616.97
8.0.190.0070.00516.87
8.0.180.0040.00616.86
8.0.170.0040.00616.86
8.0.160.0120.00316.88
8.0.150.0100.00416.75
8.0.140.0110.00416.81
8.0.130.0150.00116.85
8.0.120.0060.00816.88
8.0.110.0130.00116.82
8.0.100.0080.00416.82
8.0.90.0110.00516.79
8.0.80.0120.00416.82
8.0.70.0120.00316.79
8.0.60.0120.00016.80
8.0.50.0110.00316.72
8.0.30.0100.00316.88
8.0.20.0090.00516.90
8.0.10.0110.00316.91
7.4.330.0000.00515.55
7.4.320.0060.00016.52
7.4.300.0000.00616.36
7.4.290.0080.00616.56
7.4.280.0110.00416.48
7.4.270.0100.00316.47
7.4.260.0090.00416.36
7.4.250.0090.00416.56
7.4.240.0070.00416.52
7.4.230.0120.00216.48
7.4.220.0110.00316.53
7.4.210.0070.00516.54
7.4.200.0080.00416.54
7.4.190.0070.00616.56
7.4.180.0080.00516.54
7.4.160.0080.00416.56
7.4.150.0110.00216.49
7.4.140.0100.00416.31
7.4.130.0100.00416.40
7.4.120.0130.00216.50
7.4.110.0120.00216.39
7.4.100.0110.00416.44
7.4.90.0060.00816.47
7.4.80.0100.00516.43
7.4.70.0050.00516.30
7.4.60.0070.00516.48
7.4.50.0060.00316.39
7.4.40.0090.00316.18
7.4.30.0090.00516.38
7.4.20.0110.00516.37
7.4.10.0110.00516.48
7.4.00.0040.00716.45

preferences:
46.92 ms | 401 KiB | 5 Q