3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(); for ($i = 0; $i < 10000; $i++) { $a[$i] = 1; } $start = microtime(true); $count = count($a); for ($i = 0; $i < $count; $i++) {} echo "Completed in ", microtime(true) - $start, " Seconds\n"; $start = microtime(true); foreach ($a as $k => $v) {} echo "Completed in ", microtime(true) - $start, " Seconds\n"; $start = microtime(true); foreach ($a as $k => &$v) {} echo "Completed in ", microtime(true) - $start, " Seconds\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.2.60.0130.00717.81
8.2.50.0130.00617.87
8.2.40.0120.00618.00
8.2.30.0140.00417.94
8.2.20.0100.00717.94
8.2.10.0160.00218.06
8.2.00.0130.00517.88
8.1.190.0150.00417.56
8.1.180.0130.00517.80
8.1.170.0150.00217.73
8.1.160.0110.00717.79
8.1.150.0120.00617.74
8.1.140.0180.00017.79
8.1.130.0100.00717.81
8.1.120.0120.00617.92
8.1.110.0180.00217.74
8.1.100.0130.00417.81
8.1.90.0140.00417.73
8.1.80.0100.00817.79
8.1.70.0120.00517.63
8.1.60.0120.00718.06
8.1.50.0110.00817.75
8.1.40.0090.01018.00
8.1.30.0170.00317.86
8.1.20.0110.00717.88
8.1.10.0140.00618.00
8.1.00.0120.00617.81
8.0.280.0130.00617.04
8.0.270.0150.00217.05
8.0.260.0120.00517.18
8.0.250.0170.00016.98
8.0.240.0100.00816.99
8.0.230.0110.00617.06
8.0.220.0150.00217.04
8.0.210.0130.00417.13
8.0.200.0100.00817.31
8.0.190.0130.01017.13
8.0.180.0100.00817.17
8.0.170.0140.00317.11
8.0.160.0130.00417.31
8.0.150.0100.00817.18
8.0.140.0110.00617.24
8.0.130.0140.00317.18
8.0.120.0110.00616.91
8.0.110.0100.00817.19
8.0.100.0160.00317.13
8.0.90.0110.00816.87
8.0.80.0090.00817.25
8.0.70.0050.01317.05
8.0.60.0080.00717.55
8.0.50.0140.00316.93
8.0.30.0120.00517.12
8.0.20.0130.00417.17
8.0.10.0120.00617.11
8.0.00.0160.00117.31
7.4.330.0130.00216.52
7.4.320.0160.00416.69
7.4.300.0130.00416.86
7.4.290.0090.00816.81
7.4.280.0130.00416.63
7.4.270.0130.00316.67
7.4.260.0110.00616.81
7.4.250.0150.00216.75
7.4.240.0100.00716.81
7.4.230.0160.00016.88
7.4.220.0140.00316.75
7.4.210.0110.00616.69
7.4.200.0150.00216.87
7.4.190.0130.00416.81
7.4.180.0110.00616.69
7.4.160.0140.00316.69
7.4.150.0060.00716.75
7.4.140.0120.00516.57
7.4.130.0140.00216.80
7.4.120.0150.00216.87
7.4.110.0140.00216.69
7.4.100.0140.00216.75
7.4.90.0120.00516.62
7.4.80.0100.00816.74
7.4.70.0110.00616.81
7.4.60.0090.00716.67
7.4.50.0150.00216.75
7.4.40.0040.01216.57
7.4.30.0110.00616.75
7.4.20.0100.00716.57
7.4.10.0080.00716.67
7.4.00.0140.00416.20
7.3.330.0120.00416.56
7.3.320.0120.00516.52
7.3.310.0110.00616.57
7.3.300.0110.00416.52
7.3.290.0120.00616.57
7.3.280.0130.00416.57
7.3.270.0070.00916.57
7.3.260.0110.00516.52
7.3.250.0080.00816.67
7.3.240.0120.00316.68
7.3.230.0140.00116.55
7.3.220.0120.00416.52
7.3.210.0080.00816.63
7.3.200.0150.00116.52
7.3.190.0120.00516.52
7.3.180.0100.00716.56
7.3.170.0110.00516.56
7.3.160.0100.00616.52
7.3.150.0120.00716.55
7.3.140.0120.00416.57
7.3.130.0120.00416.52
7.3.120.0110.00616.25
7.3.110.0130.00516.20
7.3.100.0110.00616.10
7.3.90.0110.00616.23
7.3.80.0060.01016.21
7.3.70.0110.00616.06
7.3.60.0110.00516.08
7.3.50.0120.00516.24
7.3.40.0110.00616.30
7.3.30.0130.00316.19
7.3.20.0130.00616.77
7.3.10.0090.00616.63
7.3.00.0100.00516.67
7.2.340.0120.00516.57
7.2.330.0120.00516.63
7.2.320.0080.00816.63
7.2.310.0140.00316.52
7.2.300.0120.00516.52
7.2.290.0080.00816.52
7.2.280.0120.00416.63
7.2.270.0080.00816.62
7.2.260.0150.00216.52
7.2.250.0090.00716.24
7.2.240.0100.00716.21
7.2.230.0080.00616.36
7.2.220.0080.00716.16
7.2.210.0090.00616.16
7.2.200.0080.00916.45
7.2.190.0100.00616.17
7.2.180.0090.00716.26
7.2.170.0060.01016.33
7.2.160.0120.00416.70
7.2.150.0120.00616.57
7.2.140.0100.00716.63
7.2.130.0090.00816.81
7.2.120.0150.00216.93
7.2.110.0120.00616.81
7.2.100.0120.00616.81
7.2.90.0180.00116.70
7.2.80.0110.00616.87
7.2.70.0110.00816.53
7.2.60.0120.00716.41
7.2.50.0170.00516.42
7.2.40.0190.00416.39
7.2.30.0180.00416.50
7.2.20.0140.00816.44
7.2.10.0170.00516.48
7.2.00.0150.00816.50
7.1.330.0110.00416.30
7.1.320.0080.00816.34
7.1.310.0190.00516.31
7.1.300.0190.00416.30
7.1.290.0120.00516.31
7.1.280.0100.00716.28
7.1.270.0090.00616.30
7.1.260.0090.00616.25
7.1.250.0130.00416.52
7.1.240.0120.00416.52
7.1.230.0120.00416.52
7.1.220.0120.00316.52
7.1.210.0120.00316.52
7.1.200.0080.00816.52
7.1.190.0120.00416.52
7.1.180.0100.00716.52
7.1.170.0120.00815.90
7.1.160.0160.00515.89
7.1.150.0180.00815.79
7.1.140.0170.00515.75
7.1.130.0140.00815.80
7.1.120.0180.00415.86
7.1.110.0180.00415.79
7.1.100.0400.00615.80
7.1.90.0180.00915.78
7.1.80.0270.00615.72
7.1.70.0210.00615.75
7.1.60.0220.00721.81
7.1.50.0290.00621.90
7.1.40.0240.00921.87
7.1.30.0220.00721.88
7.1.20.0200.00921.80
7.1.10.0160.00715.72
7.1.00.0200.00315.85
7.0.330.0110.00416.52
7.0.320.0080.00916.52
7.0.310.0120.00416.52
7.0.300.0100.00616.52
7.0.290.0130.00216.52
7.0.280.0140.00216.52
7.0.270.0120.00316.52
7.0.260.0150.00316.52
7.0.250.0110.00416.52
7.0.240.0050.01016.52
7.0.230.0130.00316.52
7.0.220.0120.00316.52
7.0.210.0240.00316.52
7.0.200.0220.00216.52
7.0.190.0100.00516.52
7.0.180.0100.00516.52
7.0.170.0110.00416.52
7.0.160.0090.00616.52
7.0.150.0100.00516.52
7.0.140.0140.00216.52
7.0.130.0060.00816.52
7.0.120.0120.00416.52
7.0.110.0110.00416.52
7.0.100.0100.00516.52
7.0.90.0110.00316.52
7.0.80.0090.00616.52
7.0.70.0100.00516.52
7.0.60.0120.00316.52
7.0.50.0040.01216.52
7.0.40.0100.00716.52
7.0.30.0100.00416.52
7.0.20.0080.00716.52
7.0.10.0100.00616.52
7.0.00.0090.00716.52
5.6.400.0160.00317.06
5.6.390.0070.01116.81
5.6.380.0110.00716.88
5.6.370.0080.00917.00
5.6.360.0110.00616.94
5.6.350.0120.00517.06
5.6.340.0110.00516.88
5.6.330.0110.00516.94
5.6.320.0100.00817.00
5.6.310.0110.00616.94
5.6.300.0110.00616.81
5.6.290.0120.00417.13
5.6.280.0160.00316.94
5.6.270.0140.00216.88
5.6.260.0090.00816.94
5.6.250.0130.00416.88
5.6.240.0080.00916.94
5.6.230.0050.01017.00
5.6.220.0120.00417.06
5.6.210.0170.00217.19
5.6.200.0100.00617.19
5.6.190.0140.00217.38
5.6.180.0080.00917.25
5.6.170.0110.00617.13
5.6.160.0110.00517.25
5.6.150.0110.00517.31
5.6.140.0090.00717.13
5.6.130.0080.00817.00
5.6.120.0060.01017.13
5.6.110.0080.00817.00
5.6.100.0110.00617.06
5.6.90.0070.01016.94
5.6.80.0100.00516.88
5.6.70.0070.00917.06
5.6.60.0080.00817.19
5.6.50.0080.00716.81
5.6.40.0120.00317.19
5.6.30.0090.00817.00
5.6.20.0120.00516.94
5.6.10.0130.00417.00
5.6.00.0080.00716.88

preferences:
43.72 ms | 403 KiB | 5 Q