3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($x) { return $x; } $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.3.10.0000.04216.53
7.3.00.0030.04316.70
7.2.130.0030.04416.96
7.2.120.0090.03816.76
7.2.110.0100.03416.93
7.2.100.0100.03916.94
7.2.90.0000.04816.92
7.2.80.0000.04816.99
7.2.70.0070.04317.08
7.2.60.0090.03716.80
7.2.50.0060.04216.86
7.2.40.0070.04016.68
7.2.30.0040.03917.01
7.2.20.0030.04517.01
7.2.10.0070.04117.04
7.2.00.0050.03917.99
7.1.250.0030.09415.50
7.1.70.0030.06117.02
7.1.60.0070.06419.17
7.1.50.0070.07016.89
7.1.00.0100.11722.51
7.0.200.0070.04314.59
7.0.140.0070.12322.00
7.0.100.0100.06320.06
7.0.90.0030.06319.93
7.0.80.0070.11720.13
7.0.70.0070.10019.98
7.0.60.0370.10719.88
7.0.50.0100.12720.39
7.0.40.0170.13020.10
7.0.30.0070.11720.19
7.0.20.0100.10720.11
7.0.10.0130.10720.03
7.0.00.0130.12720.13
5.6.280.0030.29721.07
5.6.250.0000.28320.63
5.6.240.0070.23020.64
5.6.230.0070.21720.66
5.6.220.0030.31320.59
5.6.210.0230.28020.61
5.6.200.0070.32721.07
5.6.190.0030.27720.96
5.6.180.0030.31021.07
5.6.170.0170.32721.02
5.6.160.0100.27720.94
5.6.150.0130.28721.11
5.6.140.0070.29721.05
5.6.130.0070.32720.94
5.6.120.0070.27721.02
5.6.110.0000.33021.11
5.6.100.0100.28721.09
5.6.90.0130.34721.09
5.6.80.0000.34720.48
5.6.70.0070.30020.32
5.6.60.0130.31320.41
5.6.50.0070.28720.41
5.6.40.0070.32720.32
5.6.30.0070.29720.39
5.6.20.0070.32320.46
5.6.10.0030.31020.38
5.6.00.0000.34720.37
5.5.380.0000.23320.45
5.5.370.0070.25720.40
5.5.360.0070.26320.45
5.5.350.0130.29320.34
5.5.340.0070.33320.80
5.5.330.0100.30320.90
5.5.320.0070.28020.92
5.5.310.0130.30320.84
5.5.300.0130.30720.89
5.5.290.0100.31320.81
5.5.280.0070.31720.88
5.5.270.0030.31720.91
5.5.260.0030.31720.87
5.5.250.0170.35720.60
5.5.240.0100.30720.02
5.5.230.0100.32320.14
5.5.220.0070.31320.26
5.5.210.0000.30320.15
5.5.200.0070.30720.13
5.5.190.0070.33020.09
5.5.180.0030.32720.27
5.5.160.0030.26320.13
5.5.150.0130.30020.15
5.5.140.0100.30019.99
5.5.130.0030.33020.17
5.5.120.0030.33020.21
5.5.110.0070.27020.27
5.5.100.0270.24020.07
5.5.90.0100.33320.09
5.5.80.0030.31720.07
5.5.70.0100.34020.09
5.5.60.0000.30320.15
5.5.50.0070.32320.09
5.5.40.0070.31720.04
5.5.30.0070.31720.09
5.5.20.0000.35020.06
5.5.10.0070.31720.04
5.5.00.0000.32320.07
5.4.450.0030.31319.47
5.4.440.0000.33019.36
5.4.430.0130.29019.36
5.4.420.0000.33719.55
5.4.410.0070.31319.19
5.4.400.0030.30718.91
5.4.390.0070.28719.14
5.4.380.0000.30719.21
5.4.370.0070.30719.04
5.4.360.0170.30019.03
5.4.350.0100.30319.21
5.4.340.0100.30719.14
5.4.320.0000.30018.95
5.4.310.0030.32319.13
5.4.300.0130.30318.85
5.4.290.0030.35319.03
5.4.280.0000.32318.95
5.4.270.0100.30319.18
5.4.260.0000.26718.94
5.4.250.0130.33319.21
5.4.240.0000.31319.12
5.4.230.0070.30719.23
5.4.220.0070.30719.23
5.4.210.0100.29719.04
5.4.200.0130.31318.87
5.4.190.0070.33018.89
5.4.180.0100.28319.18
5.4.170.0070.31719.02
5.4.160.0070.32319.12
5.4.150.0100.32719.16
5.4.140.0000.26016.25
5.4.130.0030.33016.32
5.4.120.0070.30316.23
5.4.110.0100.32316.52
5.4.100.0000.30716.43
5.4.90.0100.33716.47
5.4.80.0070.33716.34
5.4.70.0100.31716.38
5.4.60.0070.33016.49
5.4.50.0070.29316.31
5.4.40.0130.32316.52
5.4.30.0070.31316.40
5.4.20.0070.26316.46
5.4.10.0030.31316.57
5.4.00.0100.23715.69
5.3.290.0030.39014.77
5.3.280.0070.31014.59
5.3.270.0070.37314.61
5.3.260.0070.36014.63
5.3.250.0030.34314.62
5.3.240.0070.38714.60
5.3.230.0000.37014.72
5.3.220.0130.38314.56
5.3.210.0070.36014.71
5.3.200.0000.37314.63
5.3.190.0030.33014.55
5.3.180.0070.35714.57
5.3.170.0070.37014.50
5.3.160.0070.36014.54
5.3.150.0070.32314.52
5.3.140.0030.39014.58
5.3.130.0030.32314.48
5.3.120.0030.31314.49
5.3.110.0030.30014.63
5.3.100.0000.32014.18
5.3.90.0030.37314.00
5.3.80.0030.30714.08
5.3.70.0000.25314.14
5.3.60.0070.38314.12
5.3.50.0100.27013.98
5.3.40.0100.34013.83
5.3.30.0000.35313.97
5.3.20.0070.36713.72
5.3.10.0100.35313.79
5.3.00.0070.36713.67
5.2.170.0030.33311.23
5.2.160.0030.28311.17
5.2.150.0030.33311.22
5.2.140.0070.42711.23
5.2.130.0030.38711.19
5.2.120.0000.33311.11
5.2.110.0070.38011.15
5.2.100.0000.38311.16
5.2.90.0070.41311.19
5.2.80.0070.40711.18
5.2.70.0030.40711.16
5.2.60.0070.38011.14
5.2.50.0030.37011.08
5.2.40.0030.34310.91
5.2.30.0130.37310.90
5.2.20.0030.39011.09
5.2.10.0100.38310.86
5.2.00.0030.41010.75
5.1.60.0030.3739.84
5.1.50.0000.36710.08
5.1.40.0000.3279.98
5.1.30.0030.35310.39
5.1.20.0000.35310.30
5.1.10.0370.29010.14
5.1.00.0100.38010.11
5.0.50.0030.5009.17
5.0.40.0070.4879.17
5.0.30.0030.4739.17
5.0.20.0000.4739.17
5.0.10.0030.4679.17
5.0.00.0030.5779.17
4.4.90.0070.4539.17
4.4.80.0000.4579.17
4.4.70.0000.4609.17
4.4.60.0070.4579.17
4.4.50.0070.4709.17
4.4.40.0030.4539.17
4.4.30.0000.4709.17
4.4.20.0030.4379.17
4.4.10.0000.4509.17
4.4.00.0030.4639.17
4.3.110.0000.4639.17
4.3.100.0100.4609.17
4.3.90.0100.4639.17
4.3.80.0000.5279.17
4.3.70.0070.4739.17
4.3.60.0000.4639.17
4.3.50.0000.4539.17
4.3.40.0100.4609.17
4.3.30.0030.4609.17
4.3.20.0000.4239.17
4.3.10.0100.4379.17
4.3.00.0070.4309.17

preferences:
38.63 ms | 401 KiB | 5 Q