3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * Simple function to replicate PHP 5 behaviour */ function microtime_float() { list($usec, $sec) = explode(" ", microtime()); return ((float)$usec + (float)$sec); } $time_start = microtime_float(); // Sleep for a while //usleep(100); $time_end = microtime_float(); $time = $time_end - $time_start; echo "Did nothing in $time 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)
7.3.120.0040.01114.88
7.3.110.0040.01114.50
7.3.100.0000.01514.33
7.3.90.0110.00414.70
7.3.80.0090.00614.85
7.3.70.0030.01314.95
7.3.60.0000.01414.76
7.3.50.0060.00915.05
7.3.40.0000.01414.72
7.3.30.0080.00814.94
7.3.20.0080.00816.81
7.3.10.0100.00316.89
7.3.00.0140.00316.63
7.2.240.0050.00514.64
7.2.230.0070.01014.71
7.2.220.0030.01014.96
7.2.210.0090.00614.77
7.2.200.0100.00315.09
7.2.190.0070.01014.97
7.2.180.0030.01014.82
7.2.170.0040.01115.00
7.2.160.0000.01414.78
7.2.150.0070.01016.93
7.2.140.0090.00616.93
7.2.130.0060.01016.62
7.2.120.0100.00316.62
7.2.110.0130.00316.76
7.2.100.0030.01216.96
7.2.90.0080.00316.96
7.2.80.0040.01116.95
7.2.70.0120.00316.90
7.2.60.0100.00616.98
7.2.50.0100.00716.95
7.2.40.0040.01216.68
7.2.30.0100.00316.93
7.2.20.0050.00516.76
7.2.10.0070.01016.97
7.2.00.0100.00518.23
7.1.330.0040.01115.81
7.1.320.0110.00415.72
7.1.310.0060.00915.75
7.1.300.0000.01515.82
7.1.290.0060.00315.84
7.1.280.0100.00315.90
7.1.270.0070.00715.69
7.1.260.0060.00615.86
7.1.250.0100.00315.98
7.1.70.0030.00717.22
7.1.60.0030.02219.25
7.1.50.0040.01817.07
7.1.00.0030.07722.35
7.0.200.0090.00916.46
7.0.140.0000.07722.08
7.0.110.0500.08720.01
7.0.100.0470.08720.07
7.0.90.0570.08719.89
7.0.80.0500.07019.87
7.0.70.0530.07719.86
7.0.60.0570.07019.85
7.0.50.0530.08320.19
7.0.40.0000.08320.19
7.0.30.0070.07720.04
7.0.20.0070.08320.21
7.0.10.0030.08020.02
7.0.00.0070.08719.97
5.6.280.0000.07321.00
5.6.250.0100.08020.55
5.6.240.0130.04720.64
5.6.230.0100.05020.57
5.6.220.0100.03720.66
5.6.210.0100.04320.57
5.6.200.0030.06321.20
5.6.190.0030.05321.22
5.6.180.0100.07321.20
5.6.170.0070.04721.09
5.6.160.0000.09020.97
5.6.150.0070.05720.97
5.6.140.0100.05021.22
5.6.130.0170.04320.94
5.6.120.0130.07721.09
5.6.110.0100.08021.23
5.6.100.0100.08321.17
5.6.90.0130.07720.89
5.6.80.0130.07020.32
5.6.70.0130.06720.52
5.6.60.0030.07020.44
5.6.50.0030.08320.47
5.6.40.0170.07020.30
5.6.30.0070.07720.58
5.6.20.0130.07320.29
5.6.10.0100.08020.34
5.6.00.0070.08020.44
5.5.380.0130.07020.21
5.5.370.0130.08020.28
5.5.360.0100.06020.29
5.5.350.0100.07720.40
5.5.340.0100.04720.89
5.5.330.0070.06720.82
5.5.320.0070.07720.94
5.5.310.0000.09020.79
5.5.300.0100.07720.98
5.5.290.0100.07320.89
5.5.280.0070.08320.98
5.5.270.0070.07720.77
5.5.260.0030.08720.91
5.5.250.0170.07020.75
5.5.240.0030.08720.30
5.5.230.0070.08320.03
5.5.220.0100.08020.19
5.5.210.0170.06720.23
5.5.200.0070.06320.30
5.5.190.0070.07320.04
5.5.180.0130.07020.29
5.5.160.0130.06720.14
5.5.150.0200.06320.31
5.5.140.0070.07320.11
5.5.130.0130.05320.19
5.5.120.0030.05320.14
5.5.110.0070.08020.30
5.5.100.0200.07020.23
5.5.90.0100.07720.09
5.5.80.0070.04320.15
5.5.70.0070.07320.09
5.5.60.0070.07720.11
5.5.50.0070.07720.19
5.5.40.0130.06020.14
5.5.30.0130.07720.18
5.5.20.0130.06019.92
5.5.10.0070.08020.07
5.5.00.0100.07019.96
5.4.450.0130.07319.32
5.4.440.0000.08719.55
5.4.430.0100.07319.46
5.4.420.0070.08019.32
5.4.410.0100.07719.53
5.4.400.0070.07319.16
5.4.390.0130.06018.98
5.4.380.0200.06318.99
5.4.370.0130.06719.18
5.4.360.0100.07319.03
5.4.350.0170.07019.23
5.4.340.0200.06319.16
5.4.320.0100.07318.95
5.4.310.0030.08319.34
5.4.300.0100.07319.16
5.4.290.0130.07019.01
5.4.280.0100.04319.01
5.4.270.0070.06718.94
5.4.260.0070.05319.31
5.4.250.0030.08019.36
5.4.240.0100.07019.01
5.4.230.0070.04319.34
5.4.220.0070.07718.95
5.4.210.0130.07019.13
5.4.200.0170.06318.96
5.4.190.0100.07019.24
5.4.180.0030.07319.13
5.4.170.0030.07319.22
5.4.160.0100.07018.98
5.4.150.0030.08019.12
5.4.140.0070.07016.46
5.4.130.0200.06316.47
5.4.120.0030.03716.28
5.4.110.0070.05016.43
5.4.100.0100.07016.66
5.4.90.0000.06716.55
5.4.80.0000.06716.53
5.4.70.0070.03716.55
5.4.60.0070.03316.59
5.4.50.0030.05016.40
5.4.40.0070.07016.47
5.4.30.0100.07016.53
5.4.20.0030.08016.30
5.4.10.0170.06016.23
5.4.00.0100.07315.93
5.3.290.0070.06314.64
5.3.280.0070.07014.56
5.3.270.0130.07014.59
5.3.260.0030.07314.56
5.3.250.0100.06314.73
5.3.240.0070.07714.61
5.3.230.0100.07714.57
5.3.220.0070.06014.56
5.3.210.0030.08314.69
5.3.200.0070.07714.52
5.3.190.0030.07314.64
5.3.180.0130.06714.64
5.3.170.0100.07014.51
5.3.160.0100.07014.64
5.3.150.0100.06714.59
5.3.140.0100.07314.64
5.3.130.0000.05714.67
5.3.120.0030.07014.55
5.3.110.0130.07314.67
5.3.100.0100.06013.90
5.3.90.0070.07014.25
5.3.80.0000.07314.04
5.3.70.0070.06314.04
5.3.60.0070.06014.00
5.3.50.0170.06313.94
5.3.40.0070.04313.98
5.3.30.0100.05713.90
5.3.20.0070.07713.70
5.3.10.0030.07713.72
5.3.00.0000.05313.63
5.2.170.0130.05311.67
5.2.160.0070.05711.67
5.2.150.0030.06711.67
5.2.140.0030.04311.67
5.2.130.0030.06311.67
5.2.120.0100.02711.67
5.2.110.0000.06311.67
5.2.100.0030.06311.67
5.2.90.0000.06311.67
5.2.80.0100.05311.67
5.2.70.0030.06311.67
5.2.60.0070.06011.67
5.2.50.0100.05311.67
5.2.40.0070.05711.67
5.2.30.0070.06011.67
5.2.20.0070.06011.67
5.2.10.0070.05711.67
5.2.00.0070.05711.67
5.1.60.0070.05011.67
5.1.50.0030.05311.67
5.1.40.0130.04311.67
5.1.30.0000.03711.67
5.1.20.0070.05711.67
5.1.10.0070.05711.67
5.1.00.0030.05311.67
5.0.50.0000.04711.67
5.0.40.0100.03711.67
5.0.30.0070.06011.67
5.0.20.0030.04311.67
5.0.10.0070.04311.67
5.0.00.0100.06011.67
4.4.90.0030.03011.67
4.4.80.0070.03011.67
4.4.70.0030.02711.67
4.4.60.0070.03311.67
4.4.50.0030.03011.67
4.4.40.0030.05011.67
4.4.30.0030.03311.67
4.4.20.0000.02711.67
4.4.10.0030.02311.67
4.4.00.0030.05711.67
4.3.110.0070.03011.67
4.3.100.0070.03311.67
4.3.90.0030.01711.67
4.3.80.0030.05011.67
4.3.70.0100.01011.67
4.3.60.0070.03311.67
4.3.50.0030.03311.67
4.3.40.0030.05011.67
4.3.30.0000.03711.67
4.3.20.0000.03711.67
4.3.10.0030.03711.67
4.3.00.0030.03311.67

preferences:
33.44 ms | 400 KiB | 5 Q