3v4l.org

run code in 300+ PHP versions simultaneously
<?php $product2 = new StdClass(); $product3 = new StdClass(); $product3->foo = 'bar'; var_dump([ empty($product1, $product1->foo), empty($product2, $product2->foo), empty($product3, $product3->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.4.310.0300.05319.07
5.4.300.0300.04319.21
5.4.290.0300.07019.14
5.4.280.0270.04718.85
5.4.270.0270.06019.18
5.4.260.0230.07018.87
5.4.250.0230.07019.24
5.4.240.0400.05719.30
5.4.230.0330.04719.26
5.4.220.0400.05718.87
5.4.210.0270.05019.23
5.4.200.0300.06019.23
5.4.190.0300.08019.25
5.4.180.0270.07319.12
5.4.170.0430.05318.94
5.4.160.0370.06318.98
5.4.150.0200.05719.14
5.4.140.0200.05716.50
5.4.130.0370.06016.38
5.4.120.0230.05716.32
5.4.110.0270.04716.40
5.4.100.0230.07316.46
5.4.90.0370.06316.33
5.4.80.0270.07016.31
5.4.70.0330.06716.50
5.4.60.0400.05716.43
5.4.50.0270.07016.43
5.4.40.0270.05016.53
5.4.30.0300.07016.51
5.4.20.0300.06316.34
5.4.10.0230.06716.43
5.4.00.0270.04715.98
5.3.280.0370.06014.54
5.3.270.0270.04714.48
5.3.260.0270.06014.44
5.3.250.0300.03014.56
5.3.240.0270.05014.55
5.3.230.0230.05714.46
5.3.220.0200.04014.47
5.3.210.0200.04314.43
5.3.200.0370.06314.39
5.3.190.0270.05014.44
5.3.180.0270.07014.51
5.3.170.0230.06314.66
5.3.160.0270.04014.44
5.3.150.0300.07014.47
5.3.140.0230.04314.40
5.3.130.0330.04314.48
5.3.120.0330.06014.49
5.3.110.0400.06014.64
5.3.100.0300.07713.98
5.3.90.0400.06013.86
5.3.80.0330.06314.05
5.3.70.0270.04714.11
5.3.60.0330.04014.00
5.3.50.0270.04013.99
5.3.40.0230.07313.78
5.3.30.0330.04713.81
5.3.20.0330.06313.54
5.3.10.0300.05313.57
5.3.00.0270.07313.59
5.2.170.0270.05312.18
5.2.160.0200.03712.18
5.2.150.0300.04312.18
5.2.140.0200.05012.18
5.2.130.0370.03712.18
5.2.120.0230.05712.18
5.2.110.0200.03312.18
5.2.100.0270.05712.18
5.2.90.0170.06012.18
5.2.80.0270.04012.18
5.2.70.0200.06312.18
5.2.60.0170.04712.18
5.2.50.0300.04312.18
5.2.40.0300.04712.18
5.2.30.0170.03712.18
5.2.20.0200.02712.18
5.2.10.0200.04712.18
5.2.00.0300.04712.18
5.1.60.0200.04012.18
5.1.50.0100.06012.18
5.1.40.0130.03012.18
5.1.30.0200.04712.18
5.1.20.0200.05012.18
5.1.10.0100.05312.18
5.1.00.0200.03712.18
5.0.50.0170.04012.18
5.0.40.0030.02712.18
5.0.30.0130.06012.18
5.0.20.0100.04312.18
5.0.10.0100.04312.18
5.0.00.0100.04012.18
4.4.90.0070.03712.18
4.4.80.0070.03312.18
4.4.70.0100.03312.18
4.4.60.0100.02012.18
4.4.50.0130.03312.18
4.4.40.0070.03312.18
4.4.30.0130.02012.18
4.4.20.0100.03312.18
4.4.10.0070.02012.18
4.4.00.0070.04012.18
4.3.110.0070.01712.18
4.3.100.0100.03712.18
4.3.90.0170.02712.18
4.3.80.0100.04712.18
4.3.70.0070.03712.18
4.3.60.0100.03012.18
4.3.50.0130.02712.18
4.3.40.0170.03712.18
4.3.30.0070.02012.18
4.3.20.0030.03712.18
4.3.10.0100.01312.18
4.3.00.0070.01712.18

preferences:
140.16 ms | 1394 KiB | 7 Q