3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "0"; if(empty($str)) { echo 'true'; }else { echo 'false' }

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)
5.4.260.0070.05019.01
5.4.250.0000.06018.94
5.4.240.0070.06019.06
5.4.230.0070.05018.99
5.4.220.0170.05318.73
5.4.210.0030.05719.00
5.4.200.0100.06018.91
5.4.190.0000.06318.78
5.4.180.0070.05018.96
5.4.170.0070.05319.06
5.4.160.0100.05018.96
5.4.150.0000.06018.78
5.4.140.0030.06016.38
5.4.130.0070.05016.42
5.4.120.0070.04716.33
5.4.110.0000.06016.49
5.4.100.0100.06316.39
5.4.90.0000.07716.39
5.4.80.0100.04716.63
5.4.70.0070.05016.34
5.4.60.0070.05016.34
5.4.50.0170.04016.43
5.4.40.0130.06316.37
5.4.30.0100.04716.29
5.4.20.0100.05316.30
5.4.10.0130.06316.44
5.4.00.0100.04715.82
5.3.280.0030.05314.64
5.3.270.0070.06014.49
5.3.260.0130.05314.63
5.3.250.0100.05314.48
5.3.240.0070.05014.61
5.3.230.0170.06014.64
5.3.220.0130.04714.57
5.3.210.0070.05314.42
5.3.200.0000.05314.44
5.3.190.0130.04714.46
5.3.180.0100.06314.58
5.3.170.0070.06314.34
5.3.160.0170.06714.58
5.3.150.0070.05714.48
5.3.140.0030.05714.32
5.3.130.0200.04314.70
5.3.120.0070.08014.42
5.3.110.0100.05314.45
5.3.100.0170.04713.88
5.3.90.0100.06013.93
5.3.80.0070.05713.89
5.3.70.0070.07014.07
5.3.60.0030.07014.09
5.3.50.0000.05313.80
5.3.40.0000.06013.95
5.3.30.0100.04013.93
5.3.20.0070.04713.69
5.3.10.0030.04713.50
5.3.00.0070.06313.75
5.2.170.0100.05011.23
5.2.160.0030.04011.06
5.2.150.0100.03711.07
5.2.140.0030.04011.23
5.2.130.0130.03011.20
5.2.120.0170.02710.86
5.2.110.0000.04311.20
5.2.100.0000.04311.10
5.2.90.0070.03710.98
5.2.80.0070.03711.00
5.2.70.0070.04011.02
5.2.60.0100.03710.89
5.2.50.0030.04011.03
5.2.40.0100.03711.02
5.2.30.0000.04710.97
5.2.20.0030.04710.89
5.2.10.0030.04010.87
5.2.00.0030.04710.79
5.1.60.0070.0309.92
5.1.50.0070.0309.88
5.1.40.0030.0339.82
5.1.30.0070.03310.41
5.1.20.0100.03010.29
5.1.10.0030.03710.13
5.1.00.0030.03710.13
5.0.50.0130.0208.60
5.0.40.0030.0278.46
5.0.30.0030.0538.18
5.0.20.0030.0308.22
5.0.10.0030.0278.08
5.0.00.0000.0438.34
4.4.90.0000.0236.34
4.4.80.0030.0206.34
4.4.70.0030.0206.34
4.4.60.0000.0236.34
4.4.50.0030.0206.34
4.4.40.0000.0336.34
4.4.30.0100.0136.34
4.4.20.0030.0206.34
4.4.10.0000.0236.34
4.4.00.0070.0276.34
4.3.110.0030.0236.34
4.3.100.0030.0276.34
4.3.90.0000.0206.34
4.3.80.0030.0336.34
4.3.70.0000.0236.34
4.3.60.0000.0206.34
4.3.50.0000.0236.34
4.3.40.0030.0336.34
4.3.30.0030.0206.34
4.3.20.0030.0206.34
4.3.10.0030.0206.34
4.3.00.0070.0239.25

preferences:
140.7 ms | 1386 KiB | 7 Q