3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class AbstractRouter { protected function match() { throw new \RuntimeException('This method ca\'nt be called directly'); } } class UrlMatcher extends AbstractRouter { protected function match() { return 'blablabla'; } } //middleware class Router extends AbstractRouter { private $matcher; public function __construct($matcher) { $this->matcher = $matcher; } public function process() { return $this->matcher->match(); } } $router = new Router(new urlMatcher()); echo $router->process();

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.00.0110.01021.64
8.4.150.0020.00014.05
8.4.140.0140.00817.53
8.4.130.0120.00817.59
8.4.120.0040.00520.54
8.4.110.0120.00922.33
8.4.100.0160.00817.77
8.4.90.0100.00822.26
8.4.80.0100.01118.70
8.4.70.0060.00319.02
8.4.60.0100.00718.59
8.4.50.0140.00718.69
8.4.40.0100.01019.21
8.4.30.0070.01122.32
8.4.20.0090.00617.88
8.4.10.0000.00820.38
8.3.280.0110.00918.15
8.3.270.0210.01216.33
8.3.260.0080.00916.50
8.3.250.0110.00818.75
8.3.240.0120.00816.26
8.3.230.0090.00416.45
8.3.220.0090.00918.95
8.3.210.0060.00416.71
8.3.200.0040.00416.50
8.3.190.0110.00617.32
8.3.180.0050.00319.09
8.3.170.0060.01216.57
8.3.160.0140.00417.00
8.3.150.0070.01116.68
8.3.140.0130.00718.84
8.3.130.0040.00418.35
8.3.120.0080.00020.62
8.3.110.0120.00320.94
8.3.100.0080.00016.57
8.3.90.0050.00326.77
8.3.80.0060.00316.63
8.3.70.0110.00716.50
8.3.60.0080.01318.43
8.3.50.0130.00823.57
8.3.40.0110.00718.79
8.3.30.0110.00418.52
8.3.20.0040.00420.77
8.3.10.0050.00320.30
8.3.00.0050.00320.46
8.2.290.0110.00920.27
8.2.280.0090.00918.14
8.2.270.0080.00016.45
8.2.260.0040.01116.62
8.2.250.0100.01016.85
8.2.240.0140.00417.12
8.2.230.0100.00322.58
8.2.220.0040.00424.06
8.2.210.0040.00426.77
8.2.200.0100.00316.25
8.2.190.0090.00616.58
8.2.180.0100.00718.29
8.2.170.0180.00322.96
8.2.160.0030.01020.43
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0000.00826.16
8.2.110.0060.00320.35
8.2.100.0000.01117.63
8.2.90.0060.00317.85
8.2.80.0030.00617.97
8.2.70.0040.00417.50
8.2.60.0040.00417.93
8.2.50.0000.00818.07
8.2.40.0060.00319.95
8.2.30.0040.00419.37
8.2.20.0040.00418.05
8.2.10.0040.00419.09
8.2.00.0070.00019.18
8.1.330.0130.00621.75
8.1.320.0110.00817.75
8.1.310.0100.01016.13
8.1.300.0040.00418.59
8.1.290.0030.00630.84
8.1.280.0060.00925.92
8.1.270.0040.00420.67
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00622.47
8.1.230.0060.00620.74
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0040.00417.35
8.1.190.0030.00517.36
8.1.180.0040.00418.10
8.1.170.0040.00418.59
8.1.160.0070.00018.95
8.1.150.0040.00418.73
8.1.140.0000.00818.73
8.1.130.0000.00720.26
8.1.120.0080.00017.42
8.1.110.0060.00317.41
8.1.100.0000.00817.30
8.1.90.0040.00417.35
8.1.80.0050.00617.42
8.1.70.0080.00017.29
8.1.60.0040.00417.45
8.1.50.0030.00617.43
8.1.40.0060.00317.55
8.1.30.0040.00417.48
8.1.20.0060.00317.57
8.1.10.0050.00317.59
8.1.00.0000.00817.39
8.0.300.0040.00419.98
8.0.290.0040.00416.75
8.0.280.0040.00418.45
8.0.270.0030.00517.91
8.0.260.0030.00320.09
8.0.250.0030.00316.94
8.0.240.0030.00316.89
8.0.230.0030.00316.86
8.0.220.0030.00316.73
8.0.210.0000.00716.76
8.0.200.0070.00016.82
8.0.190.0040.00416.79
8.0.180.0080.00016.77
8.0.170.0050.00316.84
8.0.160.0050.00216.83
8.0.150.0040.00416.68
8.0.140.0050.00316.79
8.0.130.0030.00313.30
8.0.120.0040.00416.73
8.0.110.0040.00416.83
8.0.100.0060.00316.71
8.0.90.0030.00616.70
8.0.80.0090.00916.72
8.0.70.0040.00416.70
8.0.60.0000.00716.65
8.0.50.0000.00816.73
8.0.30.0100.00717.39
8.0.20.0070.01217.20
8.0.10.0000.00716.93
8.0.00.0120.01216.58
7.4.330.0030.00316.69
7.4.320.0000.00616.46
7.4.300.0020.00516.59
7.4.290.0070.00016.64
7.4.280.0060.00316.51
7.4.270.0000.00616.41
7.4.260.0060.00013.39
7.4.250.0030.00316.52
7.4.240.0040.00316.49
7.4.230.0030.00316.55
7.4.220.0000.00716.58
7.4.210.0000.01416.52
7.4.200.0020.00516.70
7.4.130.0170.00516.47
7.4.120.0110.00716.35
7.4.110.0100.00716.32
7.4.100.0120.00616.53
7.4.90.0130.00316.30
7.4.80.0060.01019.39
7.4.70.0110.00616.63
7.4.60.0160.00016.32
7.4.50.0070.00716.47
7.4.40.0140.00716.63
7.4.20.0110.00916.37
7.4.10.0220.00616.52
7.4.00.0190.00316.61
7.3.330.0070.00016.12
7.3.320.0030.00313.22
7.3.310.0050.00216.13
7.3.300.0030.00316.20
7.3.290.0080.01016.22
7.3.280.0060.00916.17
7.3.260.0120.00416.41
7.3.240.0070.00916.27
7.3.230.0030.01316.50
7.3.210.0070.01416.45
7.3.200.0060.01216.23
7.3.190.0110.00516.54
7.3.180.0130.00316.22
7.3.170.0100.01016.52
7.3.160.0080.00816.39
7.3.140.0150.00816.23
7.3.130.0160.00816.09
7.3.120.0140.01116.42
7.3.110.0150.01016.07
7.3.100.0210.00416.26
7.3.90.0170.00916.09
7.3.80.0170.00816.12
7.3.70.0190.00816.12
7.3.60.0120.01216.13
7.3.50.0110.01816.21
7.3.40.0180.00916.32
7.3.30.0160.01216.30
7.3.20.0160.00816.30
7.3.10.0190.00916.32
7.3.00.0170.00916.26
7.2.330.0110.00716.75
7.2.320.0130.00316.58
7.2.310.0060.00916.52
7.2.300.0110.00716.54
7.2.290.0080.01116.53
7.2.270.0060.01616.34
7.2.260.0210.00916.52
7.2.250.0090.01416.60
7.2.240.0140.01416.53
7.2.230.0180.00316.62
7.2.220.0130.01316.63
7.2.210.0160.01016.50
7.2.200.0130.01316.63
7.2.190.0170.01316.56
7.2.180.0200.01116.33
7.2.170.0250.00716.49
7.2.160.0150.00916.48
7.2.150.0160.01016.56
7.2.140.0130.01416.71
7.2.130.0320.01216.59
7.2.120.0100.01316.52
7.2.110.0150.00916.67
7.2.100.0270.00616.49
7.2.90.0200.01016.67
7.2.80.0160.01416.36
7.2.70.0260.01116.41
7.2.60.0170.00616.64
7.2.50.0080.01316.72
7.2.40.0120.00916.69
7.2.30.0070.01416.57
7.2.20.0150.01816.29
7.2.10.0120.01216.31
7.2.00.0130.01616.45

preferences:
169.09 ms | 403 KiB | 5 Q