3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test() {} $t = microtime(1); for ($i = 1e6; $i--;) strlen(""); print "strlen: ".(microtime(1) - $t)."\n"; $t = microtime(1); for ($i = 1e6; $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.4.00.0030.06015.18
7.3.120.0100.05314.57
7.3.110.0090.03815.14
7.3.100.0070.03614.89
7.3.90.0000.03714.82
7.3.80.0070.03615.05
7.3.70.0070.03414.75
7.3.60.0030.03614.67
7.3.50.0030.03614.58
7.3.40.0070.03114.92
7.3.30.0030.04214.65
7.3.20.0070.03416.80
7.3.10.0030.03316.39
7.3.00.0140.02816.55
7.2.250.0030.04614.84
7.2.240.0070.04515.02
7.2.230.0070.04015.09
7.2.220.0070.03715.18
7.2.210.0100.03414.96
7.2.200.0060.03815.04
7.2.190.0030.03914.92
7.2.180.0000.04215.13
7.2.170.0000.04215.15
7.2.00.0070.04919.29
7.1.330.0130.07615.79
7.1.320.0100.08715.76
7.1.310.0030.08315.80
7.1.300.0070.07815.80
7.1.290.0030.08715.77
7.1.280.0070.08015.65
7.1.270.0100.07815.76
7.1.260.0070.07815.75
7.1.70.0000.03916.95
7.1.60.0130.06519.17
7.1.50.0030.08316.89
7.1.00.0030.06322.50
7.0.200.0160.03214.77
7.0.140.0070.12022.09
7.0.70.0070.12721.65
7.0.60.0000.12321.63
7.0.50.0130.12022.05
7.0.40.0030.07020.06
7.0.30.0000.12719.95
7.0.20.0070.11720.09
7.0.10.0070.12320.16
7.0.00.0030.12720.15
5.6.280.0070.24721.10
5.6.220.0070.27020.59
5.6.210.0030.28720.61
5.6.200.0130.29021.07
5.6.190.0030.30721.13
5.6.180.0030.29021.03
5.6.170.0030.28721.12
5.6.160.0070.27321.01
5.6.150.0070.29721.13
5.6.140.0070.28721.04
5.6.130.0130.27720.93
5.6.120.0000.28020.99
5.6.110.0030.32021.07
5.6.100.0070.30020.98
5.6.90.0030.23321.01
5.6.80.0000.21720.43
5.6.70.0070.21020.54
5.6.60.0030.20020.47
5.6.50.0030.19020.41
5.6.40.0030.21020.37
5.6.30.0030.28320.30
5.6.20.0070.27720.46
5.6.10.0030.24720.38
5.6.00.0030.25720.51
5.5.360.0130.29720.26
5.5.350.0000.29720.32
5.5.340.0170.29720.63
5.5.330.0100.29320.91
5.5.320.0030.30020.79
5.5.310.0070.42020.86
5.5.300.0030.28020.91
5.5.290.0070.27720.86
5.5.280.0030.25320.86
5.5.270.0030.30720.62
5.5.260.0030.26020.74
5.5.250.0000.24020.57
5.5.240.0000.19320.25
5.5.230.0000.30020.20
5.5.220.0100.18020.09
5.5.210.0000.19320.09
5.5.200.0030.19720.07
5.5.190.0070.29320.26
5.5.180.0130.28720.22
5.5.160.0000.29720.20
5.5.150.0030.29320.14
5.5.140.0030.29320.24
5.5.130.0100.30020.21
5.5.120.0100.28020.21
5.5.110.0070.28320.10
5.5.100.0070.29320.15
5.5.90.0030.25320.05
5.5.80.0000.29020.15
5.5.70.0000.29320.01
5.5.60.0030.30320.04
5.5.50.0070.29720.04
5.5.40.0070.29719.99
5.5.30.0000.30720.11
5.5.20.0000.25320.06
5.5.10.0030.25320.03
5.5.00.0030.30020.04
5.4.450.0030.29019.36
5.4.440.0070.23719.21
5.4.430.0030.23019.40
5.4.420.0030.29019.25
5.4.410.0070.24019.13
5.4.400.0000.20718.87
5.4.390.0030.30319.11
5.4.380.0000.19319.09
5.4.370.0030.18719.13
5.4.360.0030.19719.17
5.4.350.0030.29719.03
5.4.340.0030.29018.89
5.4.320.0070.27318.84
5.4.310.0030.28019.06
5.4.300.0130.28718.86
5.4.290.0000.30018.89
5.4.280.0030.24719.16
5.4.270.0030.28318.93
5.4.260.0030.29719.21
5.4.250.0000.28718.84
5.4.240.0030.29018.89
5.4.230.0000.25019.16
5.4.220.0000.29318.85
5.4.210.0170.26719.19
5.4.200.0130.28719.20
5.4.190.0070.29019.13
5.4.180.0100.28018.92
5.4.170.0030.29319.07
5.4.160.0070.28719.13
5.4.150.0070.27319.10
5.4.140.0030.26016.37
5.4.130.0030.24016.12
5.4.120.0000.29016.35
5.4.110.0000.26716.31
5.4.100.0030.28716.42
5.4.90.0030.30316.48
5.4.80.0070.28016.40
5.4.70.0000.25016.33
5.4.60.0000.29316.32
5.4.50.0000.28716.39
5.4.40.0000.29716.43
5.4.30.0000.27016.35
5.4.20.0030.25016.39
5.4.10.0070.29016.34
5.4.00.0030.26715.71
5.3.290.0000.30314.58
5.3.280.0030.26314.52
5.3.270.0070.29314.62
5.3.260.0030.31314.62
5.3.250.0070.32714.53
5.3.240.0070.30714.70
5.3.230.0030.32314.59
5.3.220.0130.32314.52
5.3.210.0070.33014.63
5.3.200.0070.31314.65
5.3.190.0030.33314.56
5.3.180.0000.32014.59
5.3.170.0000.32314.59
5.3.160.0100.32714.49
5.3.150.0030.27014.58
5.3.140.0130.31714.60
5.3.130.0070.32714.52
5.3.120.0030.30314.61
5.3.110.0000.29314.60
5.3.100.0000.31714.01
5.3.90.0070.31713.95
5.3.80.0030.27314.13
5.3.70.0030.32014.02
5.3.60.0030.32313.91
5.3.50.0070.32314.00
5.3.40.0000.28013.95
5.3.30.0000.28713.89
5.3.20.0000.29013.71
5.3.10.0070.31013.65
5.3.00.0070.31313.68
5.2.170.0030.34012.52
5.2.160.0030.29712.52
5.2.150.0000.30312.52
5.2.140.0030.33012.52
5.2.130.0030.31712.52
5.2.120.0000.31312.52
5.2.110.0000.32012.52
5.2.100.0000.27712.52
5.2.90.0070.32312.52
5.2.80.0030.32312.52
5.2.70.0030.31012.52
5.2.60.0030.29012.52
5.2.50.0030.33012.52
5.2.40.0070.32712.52
5.2.30.0070.31712.52
5.2.20.0030.30712.52
5.2.10.0030.28012.52
5.2.00.0030.31012.52
5.1.60.0030.28012.52
5.1.50.0030.26312.52
5.1.40.0030.31012.52
5.1.30.0000.28712.52
5.1.20.0030.30012.52
5.1.10.0000.31712.52
5.1.00.0000.32012.52
5.0.50.0030.40712.52
5.0.40.0000.39012.52
5.0.30.0030.39312.52
5.0.20.0000.37712.52
5.0.10.0030.37712.52
5.0.00.0070.38712.52
4.4.90.0000.38012.52
4.4.80.0070.37312.52
4.4.70.0100.29312.52
4.4.60.0000.35712.52
4.4.50.0030.30712.52
4.4.40.0000.35012.52
4.4.30.0000.38012.52
4.4.20.0000.34012.52
4.4.10.0070.34012.52
4.4.00.0000.38712.52
4.3.110.0000.37012.52
4.3.100.0030.40012.52
4.3.90.0030.37312.52
4.3.80.0030.38312.52
4.3.70.0000.33012.52
4.3.60.0000.37012.52
4.3.50.0000.32012.52
4.3.40.0000.36312.52
4.3.30.0000.34712.52
4.3.20.0070.37312.52
4.3.10.0030.35312.52
4.3.00.0000.35012.52

preferences:
41.42 ms | 401 KiB | 5 Q