3v4l.org

run code in 500+ PHP versions simultaneously
<?php trait Foo { public function run() { $f = function () { $this->execute(); }; $f(); } } class A { use Foo; private function execute() { echo "test"; } } $a = new A(); $a->run();

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.0070.01019.62
8.5.20.0150.00817.61
8.5.10.0060.00516.92
8.5.00.0110.01120.09
8.4.180.0100.01225.58
8.4.170.0120.01021.95
8.4.160.0120.01323.76
8.4.150.0090.00416.79
8.4.140.0130.00917.48
8.4.130.0090.01217.91
8.4.120.0100.01020.64
8.4.110.0130.00718.45
8.4.100.0070.00417.75
8.4.90.0080.00617.73
8.4.80.0110.01018.02
8.4.70.0080.01117.89
8.4.60.0070.00817.96
8.4.50.0110.00719.23
8.4.40.0160.00318.82
8.4.30.0190.00020.20
8.4.20.0060.01522.47
8.4.10.0030.00624.09
8.3.300.0120.00722.74
8.3.290.0160.00918.32
8.3.280.0060.00616.18
8.3.270.0110.00816.51
8.3.260.0130.00616.61
8.3.250.0090.00917.31
8.3.240.0130.00416.74
8.3.230.0110.00816.56
8.3.220.0050.00317.22
8.3.210.0120.00916.55
8.3.200.0140.00416.38
8.3.190.0060.00318.29
8.3.180.0110.00816.43
8.3.170.0120.00617.19
8.3.160.0120.00618.32
8.3.150.0040.01120.60
8.3.140.0000.00819.02
8.3.130.0080.00018.62
8.3.120.0130.00718.86
8.3.110.0160.00320.94
8.3.100.0030.00624.06
8.3.90.0040.00426.77
8.3.80.0060.00318.40
8.3.70.0120.00916.75
8.3.60.0100.01418.18
8.3.50.0120.00616.56
8.3.40.0040.01121.89
8.3.30.0110.00419.27
8.3.20.0040.00424.18
8.3.10.0030.00624.66
8.3.00.0040.00426.16
8.2.300.0100.01217.98
8.2.290.0100.00518.93
8.2.280.0140.00422.19
8.2.270.0070.01117.17
8.2.260.0050.00316.88
8.2.250.0110.00318.52
8.2.240.0060.01316.97
8.2.230.0050.00322.58
8.2.220.0050.00537.54
8.2.210.0050.00526.77
8.2.200.0030.00616.63
8.2.190.0150.00616.58
8.2.180.0120.00918.29
8.2.170.0060.01219.09
8.2.160.0110.00422.96
8.2.150.0080.00025.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0140.00322.31
8.2.110.0060.00321.18
8.2.100.0060.00617.84
8.2.90.0130.00017.63
8.2.80.0220.00717.38
8.2.70.0270.00316.99
8.2.60.0100.00319.25
8.2.50.0310.00017.38
8.2.40.0230.00717.25
8.2.30.0210.00617.49
8.2.20.0280.00017.38
8.2.10.0210.00917.38
8.2.00.0240.00317.50
8.1.340.0130.00717.54
8.1.330.0140.00516.00
8.1.320.0150.00415.91
8.1.310.0130.01016.10
8.1.300.0070.01118.34
8.1.290.0090.00030.84
8.1.280.0110.00725.92
8.1.270.0080.00024.66
8.1.260.0030.00526.35
8.1.250.0070.00028.09
8.1.240.0060.00322.45
8.1.230.0060.00620.98
8.1.220.0240.00417.25
8.1.210.0290.00616.88
8.1.200.0240.00517.25
8.1.190.0210.00817.13
8.1.180.0240.00317.23
8.1.170.0220.00717.25
8.1.160.0280.00017.00
8.1.150.0230.00317.13
8.1.140.0150.01217.00
8.1.130.0230.00217.35
8.1.120.0210.00517.38
8.1.110.0230.00317.13
8.1.100.0250.00317.35
8.1.90.0300.00017.25
8.1.80.0160.01217.13
8.1.70.0230.00717.24
8.1.60.0200.00717.25
8.1.50.0200.00717.25
8.1.40.0240.00317.13
8.1.30.0270.00017.23
8.1.20.0280.00517.50
8.1.10.0250.00417.11
8.1.00.0180.00917.38
8.0.300.0250.00416.75
8.0.290.0210.00716.63
8.0.280.0280.00016.74
8.0.270.0210.00616.75
8.0.260.0260.00416.38
8.0.250.0280.00016.50
8.0.240.0230.00616.37
8.0.230.0250.00416.61
8.0.220.0260.00316.49
8.0.210.0260.00716.50
8.0.200.0310.00316.50
8.0.190.0160.01216.84
8.0.180.0250.00316.38
8.0.170.0240.00416.60
8.0.160.0210.00516.75
8.0.150.0250.00316.48
8.0.140.0210.00716.50
8.0.130.0160.01116.48
8.0.120.0180.01116.59
8.0.110.0230.00316.74
8.0.100.0190.01216.38
8.0.90.0270.00016.60
8.0.80.0210.01016.37
8.0.70.0200.00816.46
8.0.60.0260.00316.38
8.0.50.0190.01016.50
8.0.30.0250.00816.61
8.0.20.0260.00416.60
8.0.10.0300.00016.73

preferences:
49.38 ms | 1094 KiB | 5 Q