3v4l.org

run code in 300+ PHP versions simultaneously
<?php $o = new stdClass; o->foo = null; var_dump(empty($o->foo));

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.6.80.0030.07320.38
5.5.240.0230.07720.36
5.4.400.0400.05318.85
5.4.390.0330.05718.78
5.4.380.0300.06718.77
5.4.370.0300.06018.52
5.4.360.0430.06718.72
5.4.350.0370.05318.85
5.4.340.0300.05718.70
5.4.320.0400.07718.80
5.4.310.0330.05318.69
5.4.300.0370.05018.56
5.4.290.0500.04318.81
5.4.280.0300.07018.80
5.4.270.0400.06318.69
5.4.260.0470.06318.79
5.4.250.0370.08018.78
5.4.240.0500.05718.75
5.4.230.0470.06718.68
5.4.220.0300.08018.75
5.4.210.0700.06018.75
5.4.200.0530.06716.62
5.4.190.0500.06018.59
5.4.180.0430.07018.77
5.4.170.0570.07018.72
5.4.160.0570.06718.80
5.4.150.0500.07018.68
5.4.140.0600.05716.29
5.4.130.0570.07316.25
5.4.120.0630.06016.41
5.4.110.0330.05316.32
5.4.100.0270.06016.29
5.4.90.0130.07716.18
5.4.80.0230.06016.17
5.4.70.0500.06016.40
5.4.60.0500.04716.29
5.4.50.0330.06016.19
5.4.40.0400.05316.14
5.4.30.0370.05016.20
5.4.20.0500.06316.40
5.4.10.0470.06016.25
5.4.00.0400.06315.73
5.3.290.0570.06714.58
5.3.280.0600.06314.52
5.3.270.3400.07314.59
5.3.260.0530.06314.68
5.3.250.0470.06014.60
5.3.240.0370.06014.55
5.3.230.0530.04714.70
5.3.220.0370.05714.62
5.3.210.0400.06714.66
5.3.200.0400.05014.55
5.3.190.0330.05314.62
5.3.180.0400.05314.51
5.3.170.0400.05314.51
5.3.160.0370.05714.65
5.3.150.0300.05714.56
5.3.140.0430.04714.45
5.3.130.0300.06014.51
5.3.120.0570.06714.64
5.3.110.0400.08014.64
5.3.100.0300.06314.02
5.3.90.0470.05714.07
5.3.80.0370.06313.96
5.3.70.0330.05714.05
5.3.60.0630.07713.94
5.3.50.0570.05014.04
5.3.40.0470.04713.92
5.3.30.0300.06313.90
5.3.20.0330.05313.79
5.3.10.0400.05013.55
5.3.00.0470.05013.73
5.2.170.0370.05011.06
5.2.160.0400.03711.28
5.2.150.0430.05311.20
5.2.140.0400.06011.13
5.2.130.0270.05011.23
5.2.120.0500.05311.15
5.2.110.0470.05011.24
5.2.100.0200.04711.27
5.2.90.0370.04311.11
5.2.80.0230.05311.07
5.2.70.0400.04311.09
5.2.60.0470.04311.18
5.2.50.0470.05311.01
5.2.40.0270.05011.03
5.2.30.0230.05310.92
5.2.20.0230.04311.02
5.2.10.0330.04011.02
5.2.00.0230.04710.87
5.1.60.0300.03310.06
5.1.50.0270.0439.96
5.1.40.0300.0339.98
5.1.30.0330.04010.38
5.1.20.0200.04710.34
5.1.10.0300.04310.14
5.1.00.0370.03710.11
5.0.50.0170.0338.57
5.0.40.0130.0378.41
5.0.30.0200.0438.22
5.0.20.0270.0308.29
5.0.10.0130.0308.17
5.0.00.0070.0538.29
4.4.90.0100.0235.93
4.4.80.0170.0235.89
4.4.70.0130.0305.89
4.4.60.0200.0305.82
4.4.50.0170.0305.88
4.4.40.0200.0375.95
4.4.30.0230.0205.89
4.4.20.0100.0235.91
4.4.10.0070.0335.92
4.4.00.0170.0435.93
4.3.110.0170.0275.90
4.3.100.0100.0305.88
4.3.90.0200.0305.77
4.3.80.0200.0405.79
4.3.70.0100.0235.82
4.3.60.0100.0275.84
4.3.50.0200.0235.86
4.3.40.0100.0405.86
4.3.30.0170.0205.56
4.3.20.0170.0305.56
4.3.10.0130.0235.56
4.3.00.0030.0206.80

preferences:
144.15 ms | 1394 KiB | 7 Q