3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Device { public function getDeviceModel() { return new DeviceModel(); } } class DeviceModel { public function getResetManualAllowed(){ return true; } } $device = new Device(); if($device?->getDeviceModel()->getResetManualAllowed()) { return "allowed"; }

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.2rc10.0110.00417.10
8.1.130.0030.00319.06
8.1.120.0030.00317.40
8.1.110.0040.00417.39
8.1.100.0130.00317.30
8.1.90.0110.00517.32
8.1.80.0080.00817.21
8.1.70.0130.00217.28
8.1.60.0070.00717.55
8.1.50.0110.00317.42
8.1.40.0070.00717.38
8.1.30.0090.00417.59
8.1.20.0060.00617.49
8.1.10.0110.00717.31
8.1.00.0030.00617.35
8.0.260.0030.00318.40
8.0.250.0000.00616.77
8.0.240.0050.00316.91
8.0.230.0030.00616.82
8.0.220.0060.00616.72
8.0.210.0110.00416.61
8.0.200.0070.00716.68
8.0.190.0130.00316.79
8.0.180.0150.00016.63
8.0.170.0070.00716.63
8.0.160.0070.00816.78
8.0.150.0040.01116.67
8.0.140.0140.00016.60
8.0.130.0110.00416.66
8.0.120.0110.00416.81
8.0.110.0120.00316.59
8.0.100.0050.00916.61
8.0.90.0100.00516.85
8.0.80.0120.00416.81
8.0.70.0050.01016.48
8.0.60.0120.00416.69
8.0.50.0160.00016.68
8.0.30.0140.00216.80
8.0.20.0120.00416.84
8.0.10.0170.00016.78
7.4.330.0050.00015.55
7.4.320.0030.00316.30
7.4.300.0090.00716.26
7.4.290.0130.00316.21
7.4.280.0150.00616.34
7.4.270.0160.00016.37
7.4.260.0160.00016.32
7.4.250.0130.00316.24
7.4.240.0110.00516.39
7.4.230.0110.00516.43
7.4.220.0130.00316.30
7.4.210.0110.00516.24
7.4.200.0150.00016.19
7.4.190.0140.00316.47
7.4.180.0100.00516.29
7.4.160.0130.00316.35
7.4.150.0130.00316.14
7.4.140.0080.00816.16
7.4.130.0120.00616.18
7.4.120.0110.00616.26
7.4.110.0130.00316.22
7.4.100.0140.00416.39
7.4.90.0050.01016.06
7.4.80.0140.00016.16
7.4.70.0040.00416.23
7.4.60.0120.00016.13
7.4.50.0120.00316.03
7.4.40.0030.00716.08
7.4.30.0100.00516.06
7.4.20.0080.00516.17
7.4.10.0100.00716.27
7.4.00.0100.00516.14

preferences:
14.83 ms | 406 KiB | 5 Q