3v4l.org

run code in 300+ PHP versions simultaneously
<?php function inc(&$item) { $item++; } $a = []; inc($a['unknown']); print_r($a);

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.5.30.0090.00820.22
8.5.20.0120.00720.08
8.5.10.0050.01220.26
8.5.00.0130.00920.04
8.4.180.0130.00819.57
8.4.170.0100.01220.54
8.4.160.0090.01223.71
8.4.150.0070.00516.90
8.4.140.0120.01017.52
8.4.130.0170.00419.67
8.4.120.0130.00722.40
8.4.110.0110.00818.81
8.4.100.0110.00818.95
8.4.90.0090.01120.43
8.4.80.0020.00618.65
8.4.70.0090.00818.13
8.4.60.0100.01118.78
8.4.50.0130.00818.43
8.4.40.0130.00619.29
8.4.30.0030.00718.47
8.4.20.0070.01319.45
8.4.10.0030.00620.45
8.3.300.0140.00820.72
8.3.290.0110.00720.82
8.3.280.0110.01118.35
8.3.270.0140.00716.37
8.3.260.0100.00316.42
8.3.250.0080.01118.88
8.3.240.0060.01417.07
8.3.230.0110.00816.41
8.3.220.0080.00619.12
8.3.210.0090.00916.66
8.3.200.0050.00316.66
8.3.190.0110.00918.84
8.3.180.0120.00217.36
8.3.170.0120.00618.61
8.3.160.0090.00916.48
8.3.150.0120.00617.11
8.3.140.0080.00018.36
8.3.130.0040.00816.69
8.3.120.0000.00818.86
8.3.110.0060.00320.94
8.3.100.0000.00824.06
8.3.90.0000.00826.77
8.3.80.0080.00416.38
8.3.70.0180.00316.58
8.3.60.0000.01516.63
8.3.50.0100.01018.41
8.3.40.0080.00818.90
8.3.30.0100.01019.39
8.3.20.0000.00724.18
8.3.10.0070.00024.66
8.3.00.0040.00426.16
8.2.300.0120.00822.13
8.2.290.0090.01020.23
8.2.280.0120.00218.06
8.2.270.0030.01317.42
8.2.260.0030.00616.48
8.2.250.0040.00416.50
8.2.240.0130.00319.11
8.2.230.0080.00022.58
8.2.220.0040.00437.54
8.2.210.0060.00326.77
8.2.200.0080.00016.88
8.2.190.0120.00316.75
8.2.180.0070.01025.92
8.2.170.0110.00718.83
8.2.160.0030.01022.96
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0080.00020.87
8.2.110.0030.00620.39
8.2.100.0110.00020.22
8.1.340.0140.00817.52
8.1.330.0040.00622.12
8.1.320.0110.00917.91
8.1.310.0050.00315.89
8.1.300.0000.00918.02
8.1.290.0060.00330.84
8.1.280.0040.01125.92
8.1.270.0030.00623.99
8.1.260.0080.00026.35
8.1.250.0030.00628.09
8.1.240.0060.00318.87
8.1.230.0030.00618.86
8.1.40.0040.00417.42

preferences:
42.85 ms | 846 KiB | 5 Q