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.3.60.0070.01116.63
8.3.50.0110.00320.30
8.3.40.0140.00320.29
8.3.30.0070.00718.71
8.3.20.0080.00024.18
8.3.10.0060.00324.66
8.3.00.0070.00026.16
8.2.180.0110.00425.92
8.2.170.0090.00618.70
8.2.160.0060.00922.96
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00026.16
8.2.110.0000.01022.23
8.2.100.0080.00417.72
8.2.90.0000.00817.63
8.2.80.0060.00318.61
8.2.70.0000.00817.50
8.2.60.0030.00617.50
8.2.50.0040.00418.04
8.2.40.0050.00218.09
8.2.30.0030.00617.99
8.2.20.0020.00519.25
8.2.10.0000.00818.00
8.2.00.0030.00319.17
8.1.270.0040.00424.66
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0050.00523.87
8.1.230.0070.00421.04
8.1.220.0040.00418.43
8.1.210.0090.00018.77
8.1.200.0040.00417.23
8.1.190.0040.00417.13
8.1.180.0060.00318.10
8.1.170.0000.00917.62
8.1.160.0000.00818.82
8.1.150.0000.00818.59
8.1.140.0040.00417.44
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.300.0000.00718.77
8.0.290.0050.00316.63
8.0.280.0040.00418.40
8.0.270.0000.00716.77
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:
49.42 ms | 400 KiB | 5 Q