3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait Foo { final protected function bar() { echo 'Foo'; } } class FooBar { use Foo; public function __construct() { $this->bar(); } } class FooBarBar extends FooBar { protected function bar() { echo 'FooBarBar'; } } new FooBar();

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.4.120.0090.00920.77
8.4.110.0030.00618.82
8.4.100.0110.01217.70
8.4.90.0080.01117.81
8.4.80.0110.01117.48
8.4.70.0110.00917.84
8.4.60.0100.00918.58
8.4.50.0150.00517.81
8.4.40.0180.00017.68
8.4.30.0100.01022.36
8.4.20.0070.01322.40
8.4.10.0060.00323.74
8.3.250.0130.00517.14
8.3.240.0110.00916.68
8.3.230.0060.00216.71
8.3.220.0050.00317.07
8.3.210.0090.00516.84
8.3.200.0070.00216.64
8.3.190.0060.00717.19
8.3.180.0080.01016.57
8.3.170.0180.00017.21
8.3.160.0120.00618.54
8.3.150.0140.00420.40
8.3.140.0150.00018.57
8.3.130.0000.00816.68
8.3.120.0130.00719.08
8.3.110.0080.00018.72
8.3.100.0090.00016.50
8.3.90.0080.00016.52
8.3.80.0070.00318.30
8.3.70.0090.00616.75
8.3.60.0070.01418.43
8.3.50.0110.01116.74
8.3.40.0080.00823.54
8.3.30.0100.00320.35
8.3.20.0020.00524.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.290.0110.00820.23
8.2.280.0100.00918.37
8.2.270.0120.00616.92
8.2.260.0090.00618.17
8.2.250.0170.00316.50
8.2.240.0060.00318.83
8.2.230.0000.01020.94
8.2.220.0080.00024.06
8.2.210.0050.00326.77
8.2.200.0040.00716.38
8.2.190.0090.00916.58
8.2.180.0070.01016.50
8.2.170.0090.00619.09
8.2.160.0100.00322.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0060.00326.16
8.2.120.0080.00019.36
8.2.110.0030.00722.08
8.2.100.0090.00020.52
8.2.70.0080.00617.28
8.1.330.0110.00816.29
8.1.320.0110.00916.28
8.1.310.0110.00716.51
8.1.300.0070.00718.16
8.1.290.0090.00018.88
8.1.280.0070.01025.92
8.1.270.0000.00824.66
8.1.260.0000.01626.35
8.1.250.0000.00728.09
8.1.240.0070.00718.47
8.1.230.0100.00018.30
8.1.200.0060.00717.13
8.0.290.0050.00616.75
7.4.330.0000.00616.58

preferences:
67.2 ms | 403 KiB | 5 Q