3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Bar() { public function __construct() { echo 'Hi!'; } } class Foo {} // no explicit __construct $a = new Foo(new Bar());

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.350.0080.03912.02
5.4.340.0030.03912.02
5.4.320.0070.04112.51
5.4.310.0070.04012.50
5.4.300.0090.05112.51
5.4.290.0090.04412.50
5.4.280.0070.03912.40
5.4.270.0090.03312.40
5.4.260.0030.04112.40
5.4.250.0080.03812.40
5.4.240.0060.04412.40
5.4.230.0060.03912.39
5.4.220.0060.03912.39
5.4.210.0060.04412.39
5.4.200.0070.03712.39
5.4.190.0060.03812.39
5.4.180.0070.03812.39
5.4.170.0060.05912.39
5.4.160.0050.03912.39
5.4.150.0060.03612.39
5.4.140.0060.03812.08
5.4.130.0050.04412.06
5.4.120.0090.03712.03
5.4.110.0060.04212.03
5.4.100.0050.04012.02
5.4.90.0050.03812.02
5.4.80.0080.04312.02
5.4.70.0090.04812.02
5.4.60.0080.04612.02
5.4.50.0060.04112.02
5.4.40.0050.03712.00
5.4.30.0050.05112.00
5.4.20.0030.04012.00
5.4.10.0080.04012.00
5.4.00.0060.03511.49
5.3.290.0060.04112.80
5.3.280.0110.03512.71
5.3.270.0030.04412.73
5.3.260.0090.04612.72
5.3.250.0070.04012.72
5.3.240.0060.04112.72
5.3.230.0060.04112.71
5.3.220.0070.03712.68
5.3.210.0070.03712.68
5.3.200.0090.03412.68
5.3.190.0060.04912.67
5.3.180.0050.04012.67
5.3.170.0050.03812.67
5.3.160.0110.04812.67
5.3.150.0060.04012.67
5.3.140.0060.03812.66
5.3.130.0040.04212.66
5.3.120.0080.04912.66
5.3.110.0030.04112.66
5.3.100.0060.03812.12
5.3.90.0090.04412.11
5.3.80.0060.03912.09
5.3.70.0060.03712.09
5.3.60.0100.03512.07
5.3.50.0060.03812.02
5.3.40.0100.03712.02
5.3.30.0050.04111.98
5.3.20.0060.04111.75
5.3.10.0090.03911.73
5.3.00.0030.04011.71
5.2.170.0050.0339.21
5.2.160.0090.0269.21
5.2.150.0060.0359.21
5.2.140.0050.0359.21
5.2.130.0030.0329.17
5.2.120.0100.0269.17
5.2.110.0040.0389.18
5.2.100.0100.0429.18
5.2.90.0070.0289.18
5.2.80.0060.0329.17
5.2.70.0040.0359.17
5.2.60.0070.0289.13
5.2.50.0070.0309.09
5.2.40.0080.0299.07
5.2.30.0070.0339.04
5.2.20.0060.0479.04
5.2.10.0110.0388.94
5.2.00.0040.0418.80
5.1.60.0040.0258.08
5.1.50.0030.0268.08
5.1.40.0060.0288.06
5.1.30.0030.0278.41
5.1.20.0040.0288.43
5.1.10.0050.0278.15
5.1.00.0070.0238.16
5.0.50.0030.0236.64
5.0.40.0040.0206.50
5.0.30.0040.0316.31
5.0.20.0040.0226.27
5.0.10.0030.0216.25
5.0.00.0020.0346.25
4.4.90.0030.0184.77
4.4.80.0060.0154.75
4.4.70.0050.0164.75
4.4.60.0000.0204.75
4.4.50.0060.0184.77
4.4.40.0090.0254.71
4.4.30.0050.0204.76
4.4.20.0030.0224.84
4.4.10.0040.0154.85
4.4.00.0020.0284.76
4.3.110.0040.0194.67
4.3.100.0010.0224.67
4.3.90.0010.0174.64
4.3.80.0050.0244.58
4.3.70.0050.0164.63
4.3.60.0030.0184.63
4.3.50.0110.0124.63
4.3.40.0050.0304.54
4.3.30.0030.0263.30
4.3.20.0040.0203.28
4.3.10.0040.0183.24
4.3.00.0100.0276.87

preferences:
142.51 ms | 1386 KiB | 7 Q