3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait impl { public function dothis() { echo 'trait'; } } class Abs implements Iface { abstract function dothis(); } class Foo extends Abs { use impl; } interface Iface { public function dothis(); } (new Foo)->dothis();

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)
5.4.280.0080.04212.40
5.4.270.0090.04312.40
5.4.260.0080.04512.41
5.4.250.0110.04412.40
5.4.240.0070.04212.40
5.4.230.0060.04312.40
5.4.220.0090.03712.40
5.4.210.0080.04312.40
5.4.200.0100.05112.40
5.4.190.0060.04312.39
5.4.180.0080.04412.39
5.4.170.0060.05012.40
5.4.160.0100.04112.40
5.4.150.0070.04412.40
5.4.140.0090.04612.08
5.4.130.0070.04812.07
5.4.120.0080.04412.03
5.4.110.0070.04512.02
5.4.100.0050.04412.02
5.4.90.0100.04812.02
5.4.80.0080.04912.02
5.4.70.0080.04712.02
5.4.60.0090.05112.02
5.4.50.0110.06212.02
5.4.40.0090.04512.00
5.4.30.0070.04312.00
5.4.20.0070.04712.00
5.4.10.0160.06212.00
5.4.00.0100.04811.50
5.3.280.0100.05112.71
5.3.270.0090.05012.72
5.3.260.0130.06512.72
5.3.250.0070.04312.72
5.3.240.0090.04812.72
5.3.230.0150.05112.71
5.3.220.0060.04612.68
5.3.210.0090.04712.68
5.3.200.0080.05112.68
5.3.190.0080.04612.68
5.3.180.0100.05512.67
5.3.170.0090.05012.67
5.3.160.0110.04712.67
5.3.150.0100.04712.67
5.3.140.0130.05412.66
5.3.130.0080.06112.66
5.3.120.0080.05612.66
5.3.110.0070.04712.66
5.3.100.0120.04812.12
5.3.90.0070.05012.08
5.3.80.0060.04712.08
5.3.70.0100.05312.07
5.3.60.0080.04512.06
5.3.50.0120.04812.00
5.3.40.0090.04712.00
5.3.30.0100.04611.95
5.3.20.0080.04411.73
5.3.10.0090.04711.70
5.3.00.0090.05011.68
5.2.170.0090.0439.18
5.2.160.0060.0409.18
5.2.150.0080.0449.18
5.2.140.0080.0419.18
5.2.130.0100.0419.14
5.2.120.0060.0389.14
5.2.110.0080.0339.15
5.2.100.0070.0369.14
5.2.90.0090.0339.14
5.2.80.0080.0419.14
5.2.70.0080.0399.14
5.2.60.0140.0589.09
5.2.50.0070.0429.06
5.2.40.0080.0409.04
5.2.30.0060.0379.01
5.2.20.0070.0379.00
5.2.10.0070.0338.92
5.2.00.0060.0488.78
5.1.60.0060.0318.07
5.1.50.0060.0308.06
5.1.40.0060.0278.05
5.1.30.0060.0358.40
5.1.20.0060.0358.42
5.1.10.0070.0328.14
5.1.00.0070.0328.14
5.0.50.0060.0256.62
5.0.40.0050.0236.48
5.0.30.0040.0366.29
5.0.20.0050.0246.27
5.0.10.0060.0236.24
5.0.00.0030.0346.23
4.4.90.0040.0194.78
4.4.80.0030.0164.76
4.4.70.0040.0204.76
4.4.60.0030.0184.75
4.4.50.0050.0194.77
4.4.40.0030.0264.71
4.4.30.0030.0194.76
4.4.20.0030.0194.84
4.4.10.0040.0204.85
4.4.00.0040.0364.76
4.3.110.0040.0184.67
4.3.100.0040.0234.66
4.3.90.0050.0154.63
4.3.80.0030.0314.58
4.3.70.0040.0184.63
4.3.60.0030.0174.63
4.3.50.0040.0174.63
4.3.40.0040.0264.54
4.3.30.0030.0173.28
4.3.20.0030.0173.26
4.3.10.0020.0183.22
4.3.00.0000.0237.30

preferences:
146.95 ms | 1394 KiB | 7 Q