3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Model { public function __isset($name) { return $name === 'foo'; } } $model = new Model(); $fooDefined = isset($model->foo); // true var_dump($fooDefined); $fooDefined = property_exists($model, 'foo') && $model->foo !== null; var_dump($fooDefined);

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.5.70.0080.00518.42
8.5.60.0130.00416.52
8.5.50.0130.00716.61
8.5.30.0070.01117.98
8.5.20.0100.00720.20
8.5.10.0090.00816.50
8.5.00.0160.00520.07
8.4.210.0040.00819.57
8.4.180.0160.00819.73
8.4.170.0130.00823.95
8.4.160.0110.01222.04
8.4.150.0080.00516.80
8.4.140.0090.01117.81
8.4.130.0050.00417.52
8.4.120.0110.00820.63
8.4.110.0120.00818.84
8.4.100.0400.01219.58
8.4.90.0120.00919.63
8.4.80.0100.01019.82
8.3.300.0110.01020.70
8.3.290.0100.01020.81
8.3.280.0100.00316.17
8.3.270.0140.00516.80
8.3.260.0070.01316.82
8.3.250.0120.00617.22
8.3.240.0050.00516.74
8.3.230.0070.00318.67
8.3.220.0130.00618.68
8.3.180.0130.00718.53
8.3.50.0120.00718.59
8.2.300.0110.00920.40
8.2.290.0340.00818.34
8.1.340.0090.01021.75
8.0.300.0310.00916.41

preferences:
35.09 ms | 623 KiB | 5 Q