3v4l.org

run code in 300+ PHP versions simultaneously
<?php function ref(&$array) { foreach ($array as $item) { $item; } } $start = microtime(true); $array = range(0, 1000); ref($array); echo 'time: '.(microtime(true) - $start).' sec';

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)
7.4.10.0030.01615.09
7.4.00.0030.01315.04
7.3.130.0120.00314.69
7.3.120.0060.01315.09
7.3.110.0100.01014.63
7.3.100.0030.00714.95
7.3.90.0070.00715.01
7.3.80.0040.01114.73
7.3.70.0030.00914.93
7.3.60.0030.01014.87
7.3.50.0000.00914.80
7.3.40.0030.01014.96
7.3.30.0000.00814.87
7.3.20.0000.01216.64
7.3.10.0070.00316.51
7.3.00.0030.00616.57
7.2.260.0110.00715.25
7.2.250.0090.00615.21
7.2.240.0030.01015.05
7.2.230.0060.01015.27
7.2.220.0030.01314.98
7.2.210.0070.00715.09
7.2.200.0040.01215.17
7.2.190.0040.01115.17
7.2.180.0000.01114.98
7.2.170.0080.00815.05
7.2.160.0030.00615.14
7.2.150.0160.00016.92
7.2.140.0000.01216.77
7.2.130.0070.00716.90
7.2.120.0040.01217.01
7.2.110.0060.00917.01
7.2.100.0110.00416.77
7.2.90.0030.01216.91
7.2.80.0000.01316.84
7.2.70.0000.01416.80
7.2.60.0070.00816.92
7.2.50.0040.01117.06
7.2.40.0000.01116.86
7.2.30.0060.00917.09
7.2.20.0110.00416.74
7.2.10.0060.00616.95
7.2.00.0030.01418.21
7.1.330.0100.00315.73
7.1.320.0030.01115.87
7.1.310.0000.00815.80
7.1.300.0100.00615.53
7.1.290.0030.00915.71
7.1.280.0000.00815.82
7.1.270.0080.00415.88
7.1.260.0060.00916.01
7.1.250.0060.00315.83
7.1.240.0000.01515.50
7.1.230.0090.00315.63
7.1.220.0030.00615.80
7.1.210.0030.01015.47
7.1.200.0030.00915.73
7.1.190.0060.00615.94
7.1.180.0000.01515.80
7.1.170.0030.00915.45
7.1.160.0070.00715.85
7.1.150.0030.00715.93
7.1.140.0000.01215.56
7.1.130.0000.01215.89
7.1.120.0070.00415.39
7.1.110.0130.00015.62
7.1.100.0020.01217.02
7.1.90.0060.00315.93
7.1.80.0100.00315.56
7.1.70.0040.01116.58
7.1.60.0130.01325.31
7.1.50.0150.01025.14
7.1.40.0130.01125.02
7.1.30.0140.00925.02
7.1.20.0060.01525.15
7.1.10.0040.00916.18
7.1.00.0060.00916.19
7.0.330.0100.00315.39
7.0.320.0060.00915.51
7.0.310.0060.00915.46
7.0.300.0040.00415.36
7.0.290.0060.00915.48
7.0.280.0030.00915.53
7.0.270.0030.00815.36
7.0.260.0030.01015.30
7.0.250.0030.00915.46
7.0.240.0000.01715.42
7.0.230.0030.01015.30
7.0.220.0060.00315.39
7.0.210.0140.00015.37
7.0.200.0050.00815.95
7.0.190.0040.01115.92
7.0.180.0030.01115.85
7.0.170.0080.00615.65
7.0.160.0060.00615.95
7.0.150.0060.00815.82
7.0.140.0020.01415.86
7.0.130.0070.01016.00
7.0.120.0060.00616.03
7.0.110.0040.01115.87
7.0.100.0060.00915.67
7.0.90.0050.01015.87
7.0.80.0080.00515.91
7.0.70.0080.00615.89
7.0.60.0060.01015.76
7.0.50.0050.00716.04
7.0.40.0050.01015.01
7.0.30.0060.01314.92
7.0.20.0090.00414.82
7.0.10.0050.01314.92
7.0.00.0090.00514.95
5.6.400.0080.00614.38
5.6.390.0040.00814.22
5.6.380.0080.00414.29
5.6.370.0060.00614.08
5.6.360.0030.01014.36
5.6.350.0100.00314.30
5.6.340.0100.00314.27
5.6.330.0070.00714.37
5.6.320.0080.00814.55
5.6.310.0060.00614.27
5.6.300.0070.00714.38
5.6.290.0040.01114.41
5.6.280.0030.00714.19
5.6.270.0070.00714.57
5.6.260.0000.01614.55
5.6.250.0040.00814.66
5.6.240.0060.00314.46
5.6.230.0040.00714.28
5.6.220.0000.01314.46
5.6.210.0060.01014.44
5.6.200.0000.01314.20
5.6.190.0030.01314.48
5.6.180.0070.00714.24
5.6.170.0060.00614.30
5.6.160.0090.00614.47
5.6.150.0040.00714.60
5.6.140.0000.01314.27
5.6.130.0060.00614.46
5.6.120.0030.00914.32
5.6.110.0110.00414.13
5.6.100.0100.00614.25
5.6.90.0100.00614.54
5.6.80.0000.01114.50
5.6.70.0060.00613.89
5.6.60.0000.01714.18
5.6.50.0050.00514.38
5.6.40.0030.01214.32
5.6.30.0040.01114.04
5.6.20.0040.01214.38
5.6.10.0090.00914.30
5.6.00.0030.00914.14

preferences:
36.55 ms | 401 KiB | 5 Q