3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Foo { private function customErrorHandler(int $code, string $msg): bool { var_dump(preg_replace('{^(fopen|mkdir)\(.*?\): }', '', $msg)); return true; } protected function write(): void { set_error_handler([$this, 'customErrorHandler']); try { $stream = fopen('php://memory', 'a'); trigger_error('Test test'); } finally { restore_error_handler(); } } public function test() { $this->write(); } } class Bar extends Foo { public function test2() { $this->write(); } } (new Foo)->test(); (new Bar)->test2();

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.30.0110.00621.25
8.5.20.0090.00820.26
8.5.10.0120.00618.54
8.5.00.0100.01120.37
8.4.180.0110.01122.09
8.4.170.0140.00920.21
8.4.160.0110.00822.25
8.4.150.0080.00516.96
8.4.140.0130.00817.88
8.4.130.0090.01118.12
8.4.120.0170.00324.09
8.4.110.0070.00222.27
8.4.100.0110.01119.06
8.4.90.0130.00718.90
8.4.80.0140.00620.52
8.4.70.0110.00518.31
8.4.60.0070.00318.74
8.4.50.0110.01218.68
8.4.40.0100.01018.84
8.4.30.0130.00618.73
8.4.20.0130.00719.53
8.4.10.0090.00019.86
8.3.300.0120.00820.83
8.3.290.0140.00720.70
8.3.280.0160.00418.49
8.3.270.0110.00916.54
8.3.260.0120.00816.68
8.3.250.0120.00718.96
8.3.240.0120.00817.05
8.3.230.0060.00616.70
8.3.220.0040.00318.75
8.3.210.0090.00918.55
8.3.200.0040.00516.66
8.3.190.0110.00817.27
8.3.180.0060.00217.05
8.3.170.0070.01120.60
8.3.160.0120.00317.38
8.3.150.0070.01117.35
8.3.140.0090.01216.55
8.3.130.0040.00418.45
8.3.120.0080.00318.90
8.3.110.0090.00020.94
8.3.100.0080.00024.06
8.3.90.0060.00326.77
8.3.80.0030.00618.43
8.3.70.0140.00418.55
8.3.60.0110.00717.00
8.3.50.0220.00018.68
8.3.40.0270.00817.63
8.3.30.0260.00917.62
8.3.20.0330.00719.38
8.3.10.0270.00617.50
8.3.00.0310.00917.61
8.2.300.0050.00323.87
8.2.290.0120.00720.70
8.2.280.0040.00418.99
8.2.270.0170.00319.33
8.2.260.0040.00418.76
8.2.250.0060.00316.88
8.2.240.0030.00617.06
8.2.230.0090.00022.58
8.2.220.0060.00337.54
8.2.210.0100.00326.77
8.2.200.0090.00016.88
8.2.190.0160.00016.63
8.2.180.0100.01016.84
8.2.170.0280.00917.75
8.2.160.0340.00617.63
8.2.150.0370.00317.50
8.2.140.0290.01417.63
8.2.130.0360.00317.61
8.2.120.0440.00017.63
8.2.110.0400.00319.38
8.2.100.0330.00417.63
8.2.90.0250.01217.75
8.2.80.0270.01217.38
8.2.70.0310.00717.25
8.2.60.0230.01317.25
8.2.50.0330.00417.36
8.2.40.0210.01317.60
8.2.30.0280.00617.50
8.2.20.0070.01817.38
8.2.10.0270.01217.00
8.2.00.0300.00817.38
8.1.340.0130.00721.69
8.1.330.0110.00721.88
8.1.320.0090.01018.22
8.1.310.0030.00616.71
8.1.300.0000.00918.55
8.1.290.0030.00630.84
8.1.280.0030.01616.38
8.1.270.0160.01017.36
8.1.260.0320.01117.13
8.1.250.0310.01117.13
8.1.240.0220.01517.13
8.1.230.0170.02017.25
8.1.220.0310.00317.38
8.1.210.0240.00717.38
8.1.200.0320.00017.25
8.1.190.0220.00817.13
8.1.180.0180.01117.00
8.1.170.0210.01117.25
8.1.160.0190.01016.98
8.1.150.0260.00417.23
8.1.140.0240.00417.23
8.1.130.0280.00317.11
8.1.120.0260.00317.25
8.1.110.0240.00417.25
8.1.100.0280.00317.38
8.1.90.0250.00817.25
8.1.80.0260.00817.00
8.1.70.0210.01417.00
8.1.60.0370.00317.48
8.1.50.0310.00317.25
8.1.40.0310.00617.63
8.1.30.0270.00417.63
8.1.20.0270.00817.38
8.1.10.0290.00317.00
8.1.00.0300.00717.50

preferences:
44.82 ms | 977 KiB | 5 Q