3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __get($prop) { return 'foo'; } } class Bar { public function __get($prop) { return '0'; } public function __isset($prop) { return true; } } $foo = new Foo(); var_dump(empty($foo->baz)); $bar = new Bar(); var_dump(empty($bar->baz));

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)
8.4.120.0090.01120.79
8.4.110.0120.00822.54
8.4.100.0130.00719.02
8.4.90.0100.00519.08
8.4.80.0130.00620.45
8.4.70.0120.00717.91
8.4.60.0090.00218.85
8.4.50.0150.00618.70
8.4.40.0000.00818.95
8.4.30.0160.00318.64
8.4.20.0120.00619.58
8.4.10.0060.00319.44
8.3.250.0090.00818.78
8.3.240.0030.00516.46
8.3.230.0070.00416.34
8.3.220.0140.00418.73
8.3.210.0110.01016.45
8.3.200.0100.00916.51
8.3.190.0120.01017.15
8.3.180.0100.01016.94
8.3.170.0180.00020.92
8.3.160.0140.00416.91
8.3.150.0100.01318.88
8.3.140.0000.01520.73
8.3.130.0030.00616.77
8.3.120.0040.00419.16
8.3.110.0030.00616.42
8.3.100.0040.00420.25
8.3.90.0040.00426.77
8.3.80.0030.00619.36
8.3.70.0130.00318.30
8.3.60.0140.00716.50
8.3.50.0090.00918.26
8.3.40.0190.01919.25
8.3.30.0230.00517.13
8.3.20.0250.00719.00
8.3.10.0230.00919.00
8.3.00.0300.00317.00
8.2.290.0080.01120.36
8.2.280.0040.00418.29
8.2.270.0150.00419.14
8.2.260.0000.00816.95
8.2.250.0070.00316.70
8.2.240.0030.00618.94
8.2.230.0030.00620.94
8.2.220.0070.00724.06
8.2.210.0070.00326.77
8.2.200.0080.00018.88
8.2.190.0110.00716.92
8.2.180.0270.00318.05
8.2.170.0230.01017.62
8.2.160.0220.01117.38
8.2.150.0290.00717.22
8.2.140.0280.00917.25
8.2.130.0330.00317.13
8.2.120.0340.00317.00
8.2.110.0340.00817.50
8.2.100.0270.00617.25
8.2.90.0200.01217.61
8.2.80.0210.01417.62
8.2.70.0290.00417.13
8.2.60.0090.00919.22
8.2.50.0220.00817.00
8.2.40.0270.00317.25
8.2.30.0170.01417.35
8.2.20.0240.00917.00
8.2.10.0290.00317.00
8.2.00.0330.00317.38
8.1.330.0150.00421.93
8.1.320.0140.00516.01
8.1.310.0140.00316.82
8.1.300.0090.00017.66
8.1.290.0030.01030.84
8.1.280.0040.01125.92
8.1.270.0320.00317.13
8.1.260.0320.00019.14
8.1.250.0290.00617.25
8.1.240.0160.01617.00
8.1.230.0240.00516.98
8.1.220.0220.00816.98
8.1.210.0200.01016.87
8.1.200.0210.00917.11
8.1.190.0270.00616.98
8.1.180.0290.00016.84
8.1.170.0280.00717.13
8.1.160.0200.01017.09
8.1.150.0290.00316.86
8.1.140.0180.01217.00
8.1.130.0260.00617.25
8.1.120.0210.00817.22
8.1.110.0180.01217.00
8.1.100.0230.00617.23
8.1.90.0100.01318.99
8.1.80.0160.00818.76
8.1.70.0160.00618.59
8.1.60.0140.00717.38
8.1.50.0180.00418.88
8.1.40.0130.01019.02
8.1.30.0120.00817.24
8.1.20.0120.00919.10
8.1.10.0200.00017.38
8.1.00.0190.00017.13

preferences:
49.2 ms | 403 KiB | 5 Q