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.0000.05718.75
5.4.250.0070.05318.75
5.4.240.0100.05318.94
5.4.230.0130.04318.97
5.4.220.0130.05018.97
5.4.210.0070.05718.89
5.4.200.0130.06718.94
5.4.190.0100.05018.97
5.4.180.0100.04719.06
5.4.170.0000.06318.74
5.4.160.0130.04718.96
5.4.150.0030.06718.88
5.4.140.0130.04716.45
5.4.130.0170.04016.33
5.4.120.0070.05016.41
5.4.110.0170.07016.55
5.4.100.0070.07316.39
5.4.90.0130.04316.47
5.4.80.0130.04016.32
5.4.70.0100.06716.51
5.4.60.0030.05316.46
5.4.50.0070.05016.57
5.4.40.0170.03716.36
5.4.30.0130.04316.44
5.4.20.0000.07316.32
5.4.10.0130.04316.50
5.4.00.0030.06715.82
5.3.280.0030.05314.29
5.3.270.0100.05014.61
5.3.260.0130.04714.63
5.3.250.0030.05314.46
5.3.240.0200.04014.49
5.3.230.0170.04714.52
5.3.220.0130.06714.34
5.3.210.0030.06014.42
5.3.200.0030.05714.48
5.3.190.0100.07014.56
5.3.180.0130.06714.26
5.3.170.0130.04314.41
5.3.160.0100.05314.57
5.3.150.0130.04714.43
5.3.140.0100.04714.57
5.3.130.0070.06014.70
5.3.120.0100.05014.58
5.3.110.0100.05014.47
5.3.100.0130.06314.19
5.3.90.0100.05013.93
5.3.80.0100.04714.13
5.3.70.0030.05714.17
5.3.60.0030.07313.77
5.3.50.0070.04713.89
5.3.40.0100.04313.82
5.3.30.0030.05713.78
5.3.20.0100.04313.74
5.3.10.0200.03713.53
5.3.00.0030.05013.51
5.2.170.0100.04011.05
5.2.160.0030.04011.15
5.2.150.0030.04011.16
5.2.140.0070.04011.15
5.2.130.0070.04011.00
5.2.120.0070.04711.02
5.2.110.0030.04010.88
5.2.100.0070.03711.20
5.2.90.0070.04311.03
5.2.80.0030.06311.09
5.2.70.0100.04011.08
5.2.60.0030.06011.20
5.2.50.0030.04011.11
5.2.40.0070.05311.01
5.2.30.0070.03711.08
5.2.20.0070.03710.89
5.2.10.0030.04010.77
5.2.00.0030.04010.79
5.1.60.0070.0479.88
5.1.50.0170.02010.06
5.1.40.0030.03710.04
5.1.30.0000.03710.26
5.1.20.0070.03310.43
5.1.10.0030.04010.25
5.1.00.0030.03710.12
5.0.50.0030.0278.51
5.0.40.0070.0238.42
5.0.30.0030.0408.31
5.0.20.0030.0408.28
5.0.10.0100.0208.40
5.0.00.0000.0438.07
4.4.90.0030.0206.57
4.4.80.0000.0336.57
4.4.70.0100.0206.57
4.4.60.0070.0176.57
4.4.50.0070.0176.57
4.4.40.0000.0476.57
4.4.30.0100.0136.57
4.4.20.0000.0236.57
4.4.10.0030.0236.57
4.4.00.0070.0276.57
4.3.110.0030.0206.57
4.3.100.0030.0306.57
4.3.90.0000.0306.57
4.3.80.0030.0306.57
4.3.70.0070.0176.57
4.3.60.0000.0206.57
4.3.50.0030.0306.57
4.3.40.0100.0236.57
4.3.30.0000.0236.57
4.3.20.0030.0206.57
4.3.10.0030.0206.57
4.3.00.0030.0277.29

preferences:
143.92 ms | 1394 KiB | 7 Q