3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time=microtime(true); for($run=0;$run<10000000; $run++) $string1='Hello this is a string which is being read many times and stuff like that.'; $time=microtime(true)-$time; echo "Single quotes took $time seconds\n"; $time=microtime(true); for($run=0;$run<10000000; $run++) $string2="Hello this is a string which is being read many times and stuff like that."; $time=microtime(true)-$time; echo "Double quotes took $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.2.00.0030.22419.51
7.1.70.0030.29217.13
7.1.60.0100.31519.31
7.1.50.0260.31734.83
7.1.00.0070.32322.51
7.0.200.0030.24316.67
7.0.140.0070.30321.93
7.0.100.0070.27720.00
7.0.90.0030.29020.05
7.0.80.0000.20719.86
7.0.70.0070.28319.89
7.0.60.0100.27719.93
7.0.50.0030.31320.36
7.0.40.0070.23020.09
7.0.30.0300.20720.06
7.0.20.0130.31320.07
7.0.10.0100.29020.03
7.0.00.0100.25720.09
5.6.280.0031.14021.13
5.6.250.0170.64720.60
5.6.240.0100.58720.69
5.6.230.0100.62320.68
5.6.220.0070.63720.61
5.6.210.0100.62020.45
5.6.200.0070.61721.05
5.6.190.0030.69021.07
5.6.180.0070.74721.07
5.6.170.0030.74721.11
5.6.160.0130.63320.93
5.6.150.0100.77020.94
5.6.140.0030.64021.02
5.6.130.0100.72321.04
5.6.120.0030.73320.93
5.6.110.0030.65321.02
5.6.100.0000.76021.04
5.6.90.0030.57321.02
5.6.80.0130.70720.52
5.6.70.0070.69020.54
5.6.60.0100.71720.31
5.6.50.0030.60320.33
5.6.40.0030.78320.41
5.6.30.0100.73720.44
5.6.20.0170.60720.31
5.6.10.0070.57720.38
5.6.00.0130.59320.36
5.5.380.0030.75020.41
5.5.370.0130.79020.48
5.5.360.0070.70020.34
5.5.350.0000.68720.42
5.5.340.0030.68020.83
5.5.330.0100.63020.86
5.5.320.0100.73020.77
5.5.310.0100.73720.87
5.5.300.0000.68720.84
5.5.290.0130.72020.92
5.5.280.0030.61320.85
5.5.270.0100.78020.88
5.5.260.0070.69320.85
5.5.250.0170.72320.69
5.5.240.0100.85720.14
5.5.230.0000.63720.30
5.5.220.0030.71020.14
5.5.210.0030.69320.26
5.5.200.0130.73720.27
5.5.190.0130.76720.27
5.5.180.0030.60720.12
5.5.160.0030.61020.25
5.5.150.0030.75320.22
5.5.140.0000.58720.17
5.5.130.0070.72720.13
5.5.120.0070.80020.26
5.5.110.0100.59720.21
5.5.100.0130.68020.15
5.5.90.0100.70720.12
5.5.80.0030.56720.18
5.5.70.0100.72320.10
5.5.60.0070.71720.09
5.5.50.0070.70020.14
5.5.40.0130.74020.02
5.5.30.0070.62020.09
5.5.20.0030.65319.99
5.5.10.0030.62720.01
5.5.00.0070.64319.95
5.4.450.0030.65719.45
5.4.440.0100.73319.35
5.4.430.0000.62319.46
5.4.420.0100.69319.38
5.4.410.0030.62719.23
5.4.400.0070.62018.81
5.4.390.0030.63018.96
5.4.380.0100.72319.12
5.4.370.0000.56718.95
5.4.360.0030.69719.06
5.4.350.0000.59719.13
5.4.340.0070.56019.04
5.4.320.0030.56319.03
5.4.310.0030.63319.15
5.4.300.0070.72718.82
5.4.290.0170.75018.97
5.4.280.0000.55719.04
5.4.270.0030.62018.96
5.4.260.0030.75719.07
5.4.250.0100.76019.05
5.4.240.0030.63019.13
5.4.230.0030.76719.11
5.4.220.0130.72019.02
5.4.210.0030.62318.97
5.4.200.0000.70318.89
5.4.190.0200.55018.95
5.4.180.0070.58318.89
5.4.170.0000.63019.12
5.4.160.0070.70719.21
5.4.150.0030.66719.00
5.4.140.0070.56016.08
5.4.130.0070.64716.20
5.4.120.0070.74316.07
5.4.110.0070.74316.23
5.4.100.0130.72316.48
5.4.90.0170.62016.36
5.4.80.0100.70316.40
5.4.70.0070.64016.40
5.4.60.0070.59716.18
5.4.50.0030.68716.27
5.4.40.0100.59016.29
5.4.30.1030.59716.41
5.4.20.0030.56316.34
5.4.10.0030.56016.33
5.4.00.0000.58715.76
5.3.290.0030.87714.52
5.3.280.1230.94014.43
5.3.270.0001.07014.54
5.3.260.0031.05314.60
5.3.250.1401.05714.55
5.3.240.0031.07314.58
5.3.230.0031.02714.59
5.3.220.0031.08314.55
5.3.210.0031.16014.56
5.3.200.0131.17014.43
5.3.190.0030.96314.55
5.3.180.0031.00014.54
5.3.170.0900.93314.57
5.3.160.0070.96314.52
5.3.150.0000.99714.55
5.3.140.0031.16314.41
5.3.130.0030.92714.48
5.3.120.0101.14714.49
5.3.110.0031.00714.53
5.3.100.0000.99013.90
5.3.90.0101.10013.89
5.3.80.0001.25013.97
5.3.70.0071.02313.79
5.3.60.0001.13713.90
5.3.50.0101.15313.90
5.3.40.0071.11313.71
5.3.30.0101.14713.88
5.3.20.0070.98013.68
5.3.10.0001.16313.61
5.3.00.0071.04313.64
5.2.170.0031.21011.67
5.2.160.0001.29711.67
5.2.150.0001.23011.67
5.2.140.0031.17011.67
5.2.130.0001.11011.67
5.2.120.0071.09711.67
5.2.110.0071.25311.67
5.2.100.0071.19311.67
5.2.90.0101.24711.67
5.2.80.0671.29711.67
5.2.70.0071.28711.67
5.2.60.0001.19011.67
5.2.50.0001.11311.67
5.2.40.0101.31011.67
5.2.30.0101.14011.67
5.2.20.0071.33711.67
5.2.10.0001.04711.67
5.2.00.0071.20311.67
5.1.60.0031.23711.67
5.1.50.0131.18311.67
5.1.40.0001.17011.67
5.1.30.0031.16711.67
5.1.20.0031.18011.67
5.1.10.0031.29711.67
5.1.00.0031.16311.67
5.0.50.0102.3738.32
5.0.40.0202.3808.26
5.0.30.0002.48011.67
5.0.20.0002.49011.67
5.0.10.0172.2908.02
5.0.00.0072.49311.67
4.4.90.0002.47011.67
4.4.80.0172.3838.00
4.4.70.0132.4178.00
4.4.60.0072.49311.67
4.4.50.0202.3908.00
4.4.40.0002.4508.00
4.4.30.0172.3938.00
4.4.20.0032.49711.67
4.4.10.0102.42011.67
4.4.00.0272.3008.00
4.3.110.0002.50011.67
4.3.100.0032.49711.67
4.3.90.0102.3878.00
4.3.80.0032.49711.67
4.3.70.0002.48311.67
4.3.60.0102.3938.00
4.3.50.0132.14011.67
4.3.40.0002.40311.67
4.3.30.0002.49711.67
4.3.20.0102.4578.00
4.3.10.0132.3408.00
4.3.00.0132.4138.00

preferences:
38.41 ms | 401 KiB | 5 Q