3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { static public function getNew() { return new static; } } $a = new Test(); $b = new $a(); print_r($b.class); print_r($a.class); $c = new $a; var_dump($a !== $b); var_dump($a !== $c);

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.340.0070.04912.03
5.4.320.0120.07712.51
5.4.310.0050.04212.52
5.4.300.0070.04912.52
5.4.290.0120.04312.51
5.4.280.0090.05012.41
5.4.270.0060.05212.41
5.4.260.0080.05312.41
5.4.250.0110.05112.41
5.4.240.0080.05312.41
5.4.230.0110.05712.40
5.4.220.0180.05812.40
5.4.210.0120.05312.40
5.4.200.0100.05412.40
5.4.190.0080.05312.39
5.4.180.0090.05412.40
5.4.170.0050.05212.40
5.4.160.0090.04012.40
5.4.150.0070.03912.40
5.4.140.0080.04812.09
5.4.130.0050.04512.07
5.4.120.0090.03612.03
5.4.110.0050.04012.03
5.4.100.0090.04212.03
5.4.90.0070.04812.04
5.4.80.0120.04412.03
5.4.70.0080.04912.02
5.4.60.0110.06112.02
5.4.50.0080.05612.02
5.4.40.0120.06612.01
5.4.30.0100.03912.01
5.4.20.0070.04512.01
5.4.10.0100.04412.01
5.4.00.0090.04411.50
5.3.290.0060.05012.80
5.3.280.0090.04312.70
5.3.270.0100.04012.72
5.3.260.0080.04312.72
5.3.250.0080.04012.72
5.3.240.0080.03912.72
5.3.230.0080.04512.71
5.3.220.0040.04412.68
5.3.210.0110.05212.68
5.3.200.0100.04712.68
5.3.190.0080.04812.68
5.3.180.0070.05312.67
5.3.170.0090.04412.67
5.3.160.0080.05112.68
5.3.150.0090.05112.67
5.3.140.0090.04912.66
5.3.130.0080.05212.66
5.3.120.0070.05312.66
5.3.110.0060.05312.66
5.3.100.0090.03712.12
5.3.90.0060.03812.10
5.3.80.0110.04012.09
5.3.70.0070.03612.10
5.3.60.0090.03612.08
5.3.50.0160.04312.02
5.3.40.0040.05012.02
5.3.30.0070.04511.98
5.3.20.0070.03811.76
5.3.10.0100.03611.73
5.3.00.0070.05011.72
5.2.170.0070.0409.22
5.2.160.0060.0349.22
5.2.150.0030.0349.22
5.2.140.0060.0369.21
5.2.130.0040.0369.18
5.2.120.0040.0309.18
5.2.110.0060.0299.18
5.2.100.0060.0339.18
5.2.90.0040.0339.18
5.2.80.0040.0379.17
5.2.70.0060.0319.17
5.2.60.0060.0329.13
5.2.50.0040.0329.10
5.2.40.0080.0289.07
5.2.30.0070.0349.05
5.2.20.0050.0309.04
5.2.10.0040.0348.94
5.2.00.0040.0308.80
5.1.60.0050.0328.10
5.1.50.0050.0268.09
5.1.40.0070.0258.07
5.1.30.0070.0338.42
5.1.20.0080.0278.44
5.1.10.0070.0278.17
5.1.00.0020.0298.17
5.0.50.0030.0216.64
5.0.40.0050.0186.50
5.0.30.0040.0326.31
5.0.20.0030.0206.28
5.0.10.0030.0226.26
5.0.00.0040.0336.25
4.4.90.0030.0174.78
4.4.80.0020.0164.76
4.4.70.0050.0164.75
4.4.60.0070.0114.75
4.4.50.0060.0144.77
4.4.40.0040.0264.71
4.4.30.0040.0164.76
4.4.20.0020.0174.84
4.4.10.0030.0174.85
4.4.00.0050.0254.76
4.3.110.0040.0144.66
4.3.100.0020.0154.66
4.3.90.0010.0174.64
4.3.80.0010.0264.58
4.3.70.0040.0134.63
4.3.60.0030.0144.63
4.3.50.0020.0164.62
4.3.40.0040.0234.54
4.3.30.0030.0193.30
4.3.20.0020.0173.28
4.3.10.0030.0143.24
4.3.00.0070.0236.70

preferences:
142.14 ms | 1398 KiB | 7 Q