3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function isOk() { return $this->log(true, __FUNCTION__); } public function isFalse() { return $this->log(false, __FUNCTION__); } private function log(mixed $result, string $methodName) { $class = new $methodName; //class exists base on the method name return $class->handle($result); } }

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.70.0090.01216.58
8.3.60.0090.00918.18
8.3.50.0160.00319.88
8.3.40.0130.00720.32
8.3.30.0080.00818.42
8.3.20.0000.00724.18
8.3.10.0070.00024.66
8.3.00.0080.00026.16
8.2.190.0100.01316.58
8.2.180.0060.00925.92
8.2.170.0070.01018.79
8.2.160.0150.00022.96
8.2.150.0000.00725.66
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0070.00026.16
8.2.110.0060.00320.39
8.2.100.0080.00417.93
8.2.90.0050.00318.90
8.2.80.0080.00017.97
8.2.70.0060.00317.13
8.2.60.0000.00917.67
8.2.50.0040.00418.07
8.2.40.0040.00418.09
8.2.30.0070.00017.84
8.2.20.0040.00419.00
8.2.10.0080.00017.84
8.2.00.0050.00318.98
8.1.280.0140.00325.92
8.1.270.0040.00424.66
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0070.00320.96
8.1.230.0070.00417.64
8.1.220.0050.00517.74
8.1.210.0000.00918.77
8.1.200.0000.00917.25
8.1.190.0040.00416.98
8.1.180.0000.00818.10
8.1.170.0080.00018.48
8.1.160.0070.00018.63
8.1.150.0040.00418.51
8.1.140.0000.00717.27
8.1.130.0060.00018.99
8.1.120.0000.00717.39
8.1.110.0080.00017.25
8.1.100.0040.00317.36
8.1.90.0060.00317.34
8.1.80.0030.00617.23
8.1.70.0170.00017.14
8.1.60.0150.00417.46
8.1.50.0140.00417.41
8.1.40.0110.00717.31
8.1.30.0090.00417.55
8.1.20.0110.00417.36
8.1.10.0120.00717.19
8.1.00.0160.00317.27
8.0.300.0070.00018.77
8.0.290.0070.00016.63
8.0.280.0030.00318.30
8.0.270.0000.00716.60
8.0.260.0000.00718.27
8.0.250.0000.00716.86
8.0.240.0000.00616.78
8.0.230.0060.00016.71
8.0.220.0030.00916.71
8.0.210.0090.00616.73
8.0.200.0110.00416.62
8.0.190.0090.00616.63
8.0.180.0120.00516.58
8.0.170.0080.00816.63
8.0.160.0160.00016.71
8.0.150.0160.00016.59
8.0.140.0150.00016.57
8.0.130.0130.00316.67
8.0.120.0050.01116.64
8.0.110.0110.00416.57
8.0.100.0100.00716.59
8.0.90.0140.00216.71
8.0.80.0120.00316.69
8.0.70.0130.00316.62
8.0.60.0100.00716.59
8.0.50.0080.00816.59
8.0.30.0120.00416.66
8.0.20.0150.00316.77
8.0.10.0100.00516.72
7.4.330.0020.00215.55
7.4.320.0000.00616.41
7.4.300.0160.00016.41
7.4.290.0110.00816.36
7.4.280.0110.00516.41
7.4.270.0070.00516.35
7.4.260.0130.00316.25
7.4.250.0040.00916.41
7.4.240.0060.01216.37
7.4.230.0120.00216.43
7.4.220.0110.00416.34
7.4.210.0110.00316.34
7.4.200.0150.00016.28
7.4.190.0100.00516.38
7.4.180.0060.00616.36
7.4.160.0060.00616.38
7.4.150.0070.00716.38
7.4.140.0080.00816.27
7.4.130.0130.00316.15
7.4.120.0150.00016.03
7.4.110.0100.00516.32
7.4.100.0030.00916.22
7.4.90.0000.00816.29
7.4.80.0060.00016.16
7.4.70.0030.00316.19
7.4.60.0000.00616.21
7.4.50.0000.00616.29
7.4.40.0070.00016.08
7.4.30.0030.00316.18
7.4.20.0030.00316.07
7.4.10.0000.00716.22
7.4.00.0020.00516.28

preferences:
55.24 ms | 401 KiB | 5 Q