3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($x) { return $x; } $t = microtime(1); for ($i = 1e7; $i--;) strlen(""); print "strlen: ".(microtime(1) - $t)."\n"; $t = microtime(1); for ($i = 1e7; $i--;) test(""); print "userdefiniert: ".(microtime(1) - $t)."\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.0.120.0000.44022.05
7.0.110.0070.44721.99
7.0.100.0030.45322.04
7.0.90.0030.45022.14
7.0.80.0030.43022.16
7.0.70.0000.44722.14
7.0.60.0000.43722.18
7.0.50.0100.44022.08
7.0.40.0000.44722.20
7.0.30.0070.44022.21
7.0.20.0000.44322.17
7.0.10.0000.44322.14
7.0.00.0000.45022.17
5.6.260.0001.60320.92
5.6.250.0031.74720.83
5.6.240.0031.91020.87
5.6.230.0001.62721.03
5.6.220.0071.62721.02
5.6.210.0031.65020.98
5.6.200.0031.53720.73
5.6.190.0071.59021.09
5.6.180.0101.71721.10
5.6.170.0001.64720.93
5.6.160.0001.80021.05
5.6.150.0071.77021.05
5.6.140.0031.63320.99
5.6.130.0001.54720.94
5.6.120.0031.61020.82
5.6.110.0071.63721.07
5.6.100.0131.64021.04
5.6.90.0001.56720.81
5.6.80.0001.61720.39
5.6.70.0131.58320.34
5.6.60.0071.60020.41
5.6.50.0071.63020.32
5.6.40.0001.61320.39
5.6.30.0001.75720.39
5.6.20.0031.63020.42
5.6.10.0071.59320.38
5.6.00.0071.63320.14
5.5.380.0031.60017.56
5.5.370.0031.59317.53
5.5.360.0001.73017.71
5.5.350.0031.60317.62
5.5.340.0071.62318.23
5.5.330.0031.63017.93
5.5.320.0071.73017.95
5.5.310.0101.61318.09
5.5.300.0031.68018.24
5.5.290.0001.61017.92
5.5.280.0001.63318.09
5.5.270.0031.64717.92
5.5.260.0001.60018.06
5.5.250.0031.61317.88
5.5.240.0031.63717.46
5.5.230.0031.62317.45
5.5.220.0031.59317.47
5.5.210.0101.59317.43
5.5.200.0001.72017.40
5.5.190.0071.67017.40
5.5.180.0001.59317.27
5.5.160.0001.79017.32
5.5.150.0031.61317.45
5.5.140.0071.75317.45
5.5.130.0001.63717.44
5.5.120.0031.56317.58
5.5.110.0071.75317.25
5.5.100.0031.66717.48
5.5.90.0001.57717.36
5.5.80.0001.62017.16
5.5.70.0031.60717.49
5.5.60.0001.50317.33
5.5.50.0001.60017.48
5.5.40.0001.63717.49
5.5.30.0031.59017.37
5.5.20.0001.64317.19
5.5.10.0031.54717.48
5.5.00.0071.75717.46
5.4.450.0031.61019.48
5.4.440.0001.60719.65
5.4.430.0031.63319.30
5.4.420.0071.59719.32
5.4.410.0101.62719.20
5.4.400.0001.82719.18
5.4.390.0031.60019.00
5.4.380.0071.78019.00
5.4.370.0071.61019.14
5.4.360.0001.61319.16
5.4.350.0001.73019.16
5.4.340.0031.63019.16
5.4.320.0001.68018.99
5.4.310.0101.70019.33
5.4.300.0071.60319.00
5.4.290.0031.66319.32
5.4.280.0101.64319.00
5.4.270.0031.74018.99
5.4.260.0071.60719.13
5.4.250.0031.73019.15
5.4.240.0001.65319.02
5.4.230.0001.55319.30
5.4.220.0071.51718.93
5.4.210.0001.68019.15
5.4.200.0071.57718.98
5.4.190.0101.81319.02
5.4.180.0001.54018.98
5.4.170.0031.80719.21
5.4.160.0031.65319.13
5.4.150.0001.82719.07
5.4.140.0071.62016.35
5.4.130.0071.63316.46
5.4.120.0031.62316.54
5.4.110.0071.63316.58
5.4.100.0001.65016.55
5.4.90.0001.68316.42
5.4.80.0001.69016.30
5.4.70.0031.65016.23
5.4.60.0031.60016.43
5.4.50.0031.68016.54
5.4.40.0031.62016.49
5.4.30.0131.65016.55
5.4.20.0031.62016.32
5.4.10.0071.58716.38
5.4.00.0031.63015.73
5.3.290.0032.12314.66
5.3.280.0032.22314.59
5.3.270.0032.49714.60
5.3.260.0072.05014.58
5.3.250.0032.03314.56
5.3.240.0032.03014.73
5.3.230.0032.09714.82
5.3.220.0002.15314.59
5.3.210.0032.13014.54
5.3.200.0032.11314.79
5.3.190.0002.09714.64
5.3.180.0032.08014.66
5.3.170.0072.49314.39
5.3.160.0032.25314.64
5.3.150.0002.11014.57
5.3.140.0072.10714.58
5.3.130.0072.15714.50
5.3.120.0072.11014.68
5.3.110.0072.10014.68
5.3.100.0002.02014.35
5.3.90.0032.22714.35
5.3.80.0032.09014.35
5.3.70.0002.10014.35
5.3.60.0032.04714.35
5.3.50.0032.13714.35
5.3.40.0072.18314.35
5.3.30.0002.06314.35
5.3.20.0002.13314.35
5.3.10.0002.29314.35
5.3.00.0002.32714.35

preferences:
35.24 ms | 401 KiB | 5 Q