3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Log{ public static function log(){ echo 'fuck'; } } class Test{ protected $logger; public function setLogger($logger){ $this->logger = $logger; } public function fire(){ $this->logger->log(); } } $test = new Test(); $test->setLogger(Log); $test->fire();

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.0090.01218.30
8.3.50.0070.01121.27
8.3.40.0120.00618.54
8.3.30.0060.00920.17
8.3.20.0080.00020.39
8.3.10.0080.00021.84
8.3.00.0000.00822.48
8.2.180.0040.01116.75
8.2.170.0180.00322.96
8.2.160.0070.01322.12
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0040.00420.88
8.2.110.0030.00621.94
8.2.100.0030.00718.69
8.1.280.0150.00625.92
8.1.270.0050.00223.99
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0060.00318.57
8.1.230.0030.00618.52
5.4.240.0090.03712.39
5.4.230.0060.03812.38
5.4.220.0090.03512.38
5.4.210.0050.03812.38
5.4.200.0050.03812.38
5.4.190.0090.03812.38
5.4.180.0050.03612.38
5.4.170.0090.04212.39
5.4.160.0090.03812.38
5.4.150.0060.03612.38
5.4.140.0050.03912.06
5.4.130.0070.04112.05
5.4.120.0070.03812.01
5.4.110.0050.03812.01
5.4.100.0050.04512.01
5.4.90.0090.03412.01
5.4.80.0050.04112.01
5.4.70.0050.03612.00
5.4.60.0040.03612.00
5.4.50.0050.03912.00
5.4.40.0050.03711.99
5.4.30.0070.03511.99
5.4.20.0050.03711.98
5.4.10.0080.03511.99
5.4.00.0070.03811.48
5.3.280.0070.03912.71
5.3.270.0070.03912.72
5.3.260.0080.03812.72
5.3.250.0100.04112.72
5.3.240.0070.04512.72
5.3.230.0070.03912.70
5.3.220.0080.03812.68
5.3.210.0100.04212.68
5.3.200.0050.03812.68
5.3.190.0070.03712.68
5.3.180.0060.03612.67
5.3.170.0060.04212.67
5.3.160.0040.04012.68
5.3.150.0080.03512.67
5.3.140.0070.03612.66
5.3.130.0070.04012.66
5.3.120.0070.04112.66
5.3.110.0040.04212.66
5.3.100.0030.04012.12
5.3.90.0070.03912.09
5.3.80.0070.03612.08
5.3.70.0050.03812.09
5.3.60.0040.03812.07
5.3.50.0040.03912.01
5.3.40.0050.03812.01
5.3.30.0050.03711.96
5.3.20.0050.03811.74
5.3.10.0030.03811.71
5.3.00.0050.04111.71

preferences:
39.65 ms | 401 KiB | 5 Q