3v4l.org

run code in 300+ PHP versions simultaneously
<?php class \__CG__\TEST { public $a = 5; public $b = 'b'; public $c = null; protected $d = "d"; private $e = "eeeee"; public function __construct() { $this->c = new \__CG__\TEST(); $this->c->a = 5; $this->c->b = "q"; } } echo serialize(new A);

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.0050.04212.01
5.4.340.0080.04312.01
5.4.320.0050.04312.49
5.4.310.0060.03912.50
5.4.300.0070.03812.50
5.4.290.0110.03912.49
5.4.280.0050.04112.39
5.4.270.0050.04112.39
5.4.260.0080.03712.39
5.4.250.0060.03812.39
5.4.240.0070.03612.39
5.4.230.0050.04512.38
5.4.220.0080.04312.38
5.4.210.0070.04012.38
5.4.200.0070.04112.38
5.4.190.0050.04012.38
5.4.180.0060.04012.38
5.4.170.0110.04112.39
5.4.160.0060.03912.38
5.4.150.0060.03612.38
5.4.140.0060.04312.07
5.4.130.0030.03912.05
5.4.120.0080.03612.02
5.4.110.0030.03912.01
5.4.100.0040.04212.01
5.4.90.0080.03512.01
5.4.80.0070.04012.02
5.4.70.0080.04112.01
5.4.60.0110.03912.00
5.4.50.0090.03612.01
5.4.40.0070.03711.99
5.4.30.0100.03711.99
5.4.20.0070.03611.99
5.4.10.0080.03611.99
5.4.00.0030.03911.48
5.3.290.0080.04412.80
5.3.280.0060.04412.71
5.3.270.0100.03912.72
5.3.260.0040.04312.72
5.3.250.0090.04112.71
5.3.240.0160.04612.71
5.3.230.0080.04312.71
5.3.220.0110.04412.68
5.3.210.0100.04112.68
5.3.200.0090.04212.68
5.3.190.0060.04412.68
5.3.180.0100.03512.68
5.3.170.0080.03712.67
5.3.160.0080.04412.67
5.3.150.0110.04412.67
5.3.140.0070.04212.66
5.3.130.0090.04112.65
5.3.120.0110.05012.66
5.3.110.0090.04312.66
5.3.100.0080.04012.12
5.3.90.0070.04212.08
5.3.80.0090.05212.07
5.3.70.0110.08612.07
5.3.60.0040.03912.07
5.3.50.0080.09012.00
5.3.40.0070.03912.00
5.3.30.0060.04011.95
5.3.20.0030.03911.72
5.3.10.0100.03611.70
5.3.00.0110.03311.68
5.2.170.0080.0379.21
5.2.160.0070.0309.21
5.2.150.0050.0339.21
5.2.140.0060.0369.21
5.2.130.0080.0299.16
5.2.120.0060.0389.17
5.2.110.0060.0309.17
5.2.100.0060.0369.18
5.2.90.0050.0309.18
5.2.80.0040.0319.17
5.2.70.0060.0339.17
5.2.60.0070.0299.13
5.2.50.0050.0319.10
5.2.40.0050.0349.07
5.2.30.0070.0309.04
5.2.20.0040.0319.04
5.2.10.0040.0318.94
5.2.00.0030.0318.80
5.1.60.0050.0308.09
5.1.50.0060.0238.07
5.1.40.0050.0248.06
5.1.30.0050.0268.41
5.1.20.0050.0268.44
5.1.10.0070.0258.16
5.1.00.0060.0268.16
5.0.50.0080.0216.64
5.0.40.0050.0206.49
5.0.30.0030.0356.30
5.0.20.0040.0206.28
5.0.10.0060.0206.26
5.0.00.0020.0356.25
4.4.90.0040.0164.78
4.4.80.0030.0164.75
4.4.70.0050.0134.75
4.4.60.0060.0164.76
4.4.50.0050.0154.77
4.4.40.0120.0454.71
4.4.30.0060.0204.76
4.4.20.0050.0194.85
4.4.10.0030.0164.85
4.4.00.0060.0304.76
4.3.110.0080.0164.67
4.3.100.0020.0204.67
4.3.90.0050.0144.63
4.3.80.0050.0224.58
4.3.70.0020.0154.63
4.3.60.0050.0174.63
4.3.50.0020.0164.63
4.3.40.0030.0264.53
4.3.30.0050.0203.30
4.3.20.0040.0153.28
4.3.10.0050.0223.23
4.3.00.0030.0206.93

preferences:
141.24 ms | 1394 KiB | 7 Q