3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $references; private $bar; public function __construct() { $this->references = ['bar' => & $this->bar]; unset($this->baz); } public function & __get($name) { if (! isset($this->$name)) { var_dump('initialized'); $this->$name = 'initialized - ' . $name; } return $this->$name; } } $foo = new Foo(); var_dump($foo->references); $foo->references['bar'] = 'bar pre-initialized'; var_dump($foo->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)
8.3.70.0040.01218.56
8.3.60.0070.00716.75
8.3.50.0130.00622.05
8.3.40.0040.01118.84
8.3.30.0090.00918.95
8.3.20.0000.00720.16
8.3.10.0000.00820.49
8.3.00.0040.00419.38
8.2.190.0060.01216.75
8.2.180.0040.01218.28
8.2.170.0090.00622.96
8.2.160.0070.00720.43
8.2.150.0060.00324.18
8.2.140.0000.00824.66
8.2.130.0050.00226.16
8.2.120.0030.00619.54
8.2.110.0070.00321.11
8.2.100.0090.00317.72
8.2.90.0060.00319.57
8.2.80.0030.00617.63
8.2.70.0100.00017.50
8.2.60.0030.00618.05
8.2.50.0030.00518.07
8.2.40.0000.00819.88
8.2.30.0040.00418.17
8.2.20.0080.00017.61
8.2.10.0040.00418.11
8.2.00.0000.00717.83
8.1.280.0110.00325.92
8.1.270.0090.00020.79
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00322.71
8.1.230.0110.00020.85
8.1.220.0050.00317.74
8.1.210.0030.00718.77
8.1.200.0060.00317.47
8.1.190.0030.00517.23
8.1.180.0040.00422.13
8.1.170.0030.00518.89
8.1.160.0000.00718.86
8.1.150.0050.00318.79
8.1.140.0000.00817.50
8.1.130.0000.00717.82
8.1.120.0070.00017.50
8.1.110.0080.00017.35
8.1.100.0050.00217.48
8.1.90.0070.00017.43
8.1.80.0000.00717.40
8.1.70.0030.00317.41
8.1.60.0030.00617.63
8.1.50.0030.00517.51
8.1.40.0040.00417.45
8.1.30.0030.00517.63
8.1.20.0000.00817.68
8.1.10.0090.00017.45
8.1.00.0000.00817.41
8.0.300.0000.00719.89
8.0.290.0080.00016.75
8.0.280.0040.00418.34
8.0.270.0000.00717.30
8.0.260.0030.00317.25
8.0.250.0070.00016.84
8.0.240.0080.00016.84
8.0.230.0080.00216.95
8.0.220.0070.00016.91
8.0.210.0030.00516.90
8.0.200.0000.00716.92
8.0.190.0000.00816.84
8.0.180.0000.00716.83
8.0.170.0040.00416.84
8.0.160.0000.00716.86
8.0.150.0040.00416.89
8.0.140.0040.00416.71
8.0.130.0030.00313.36
8.0.120.0040.00416.80
8.0.110.0000.00716.77
8.0.100.0040.00416.70
8.0.90.0040.00416.77
8.0.80.0100.00716.87
8.0.70.0080.00016.67
8.0.60.0000.00716.76
8.0.50.0040.00416.78
8.0.30.0110.01117.09
8.0.20.0140.00617.40
8.0.10.0040.00417.05
8.0.00.0050.01516.93
7.4.330.0030.00315.14
7.4.320.0000.00616.61
7.4.300.0030.00316.61
7.4.290.0070.00016.51
7.4.280.0000.00716.63
7.4.270.0000.00716.52
7.4.260.0080.00016.57
7.4.250.0000.00716.47
7.4.240.0050.00316.61
7.4.230.0000.00716.68
7.4.220.0070.01016.59
7.4.210.0100.01016.66
7.4.200.0030.00516.67
7.4.160.0080.01216.50
7.4.150.0060.01217.40
7.4.140.0090.00917.86
7.4.130.0080.01116.50
7.4.120.0080.01116.46
7.4.110.0110.00716.46
7.4.100.0100.01016.67
7.4.90.0100.00716.53
7.4.80.0070.01119.39
7.4.70.0130.01016.40
7.4.60.0060.01216.55
7.4.50.0040.00416.38
7.4.40.0100.00616.66
7.4.30.0090.00916.38
7.4.00.0050.01014.92
7.3.330.0000.00613.30
7.3.320.0030.00313.14
7.3.310.0040.00416.42
7.3.300.0040.00416.38
7.3.290.0060.01016.38
7.3.280.0090.00616.36
7.3.270.0070.01817.40
7.3.260.0030.01316.57
7.3.250.0070.01016.33
7.3.240.0080.00816.54
7.3.230.0150.00316.53
7.3.210.0040.01216.36
7.3.200.0150.00919.39
7.3.190.0090.01416.46
7.3.180.0090.00716.25
7.3.170.0090.00916.59
7.3.160.0030.01316.37
7.3.120.0090.00914.90
7.3.110.0120.00614.89
7.3.100.0030.01314.81
7.3.90.0000.01414.78
7.3.80.0110.00414.77
7.3.70.0100.00714.83
7.3.60.0030.01314.88
7.3.50.0060.01214.86
7.3.40.0100.00315.00
7.3.30.0000.01414.98
7.3.20.0000.01316.88
7.3.10.0060.00716.62
7.3.00.0030.01016.68
7.2.330.0070.01116.88
7.2.320.0060.01216.48
7.2.310.0130.00316.52
7.2.300.0030.01516.79
7.2.290.0130.01016.63
7.2.250.0120.00614.71
7.2.240.0110.00715.09
7.2.230.0060.00314.99
7.2.220.0000.01514.96
7.2.210.0000.01115.03
7.2.200.0030.01315.12
7.2.190.0090.00615.32
7.2.180.0090.00914.80
7.2.170.0040.01115.07
7.2.130.0060.00616.72
7.2.120.0030.01016.84
7.2.110.0080.00417.11
7.2.100.0110.00416.94
7.2.90.0110.00417.11
7.2.80.0060.00616.78
7.2.70.0040.01116.86
7.2.60.0030.01017.01
7.2.50.0000.01316.73
7.2.40.0030.01016.66
7.2.30.0110.00417.02
7.2.20.0090.00616.89
7.2.10.0080.00616.69
7.2.00.0060.00818.31
7.1.330.0120.00315.98
7.1.320.0030.00815.60
7.1.310.0040.00815.63
7.1.300.0090.00615.81
7.1.290.0030.00615.96
7.1.280.0040.01415.78
7.1.270.0040.00715.84
7.1.260.0040.01115.71
7.1.250.0060.00315.76
7.1.100.0030.00918.01
7.1.70.0000.00717.20
7.1.60.0040.02119.18
7.1.50.0160.01017.14
7.1.00.0070.08322.50
7.0.200.0000.00816.90
7.0.140.0000.07722.06
7.0.60.0130.06719.83
7.0.50.0170.07017.87
7.0.40.0100.04020.30
7.0.30.0270.04020.34
7.0.20.0230.09020.06
7.0.10.0030.04320.08
7.0.00.0030.04320.23
5.6.280.0030.07021.15
5.6.210.0030.05020.55
5.6.200.0100.05318.27
5.6.190.0070.06320.50
5.6.180.4070.03320.60
5.6.170.0230.06320.45
5.6.160.0030.08720.52
5.6.150.0200.04018.18
5.6.140.0070.06018.23
5.6.130.0070.08318.15
5.6.120.0030.07021.15
5.6.110.0000.08721.14
5.6.100.0130.04721.13
5.6.90.0070.08720.98
5.6.80.0070.05320.38
5.6.70.4600.03320.28
5.5.350.0270.07720.41
5.5.340.0030.08317.95
5.5.330.0000.08320.19
5.5.320.0300.03720.38
5.5.310.0300.07020.37
5.5.300.0030.08318.03
5.5.290.0070.04717.97
5.5.280.0100.08320.85
5.5.270.0170.07320.80
5.5.260.0030.08320.96
5.5.250.0000.04320.55
5.5.240.0230.07720.27
5.4.450.0170.05019.17
5.4.440.0500.06019.48
5.4.430.0800.06019.38
5.4.420.0170.05019.51
5.4.410.0170.04719.42
5.4.400.0400.07318.77
5.4.390.0330.06318.85
5.4.380.0300.08718.74
5.4.370.0270.08018.59
5.4.360.0400.05718.81
5.4.350.0090.03712.02
5.4.340.0070.03612.02
5.4.320.0090.03512.51
5.4.310.0100.03512.50
5.4.300.0090.03812.50
5.4.290.0080.04012.50
5.4.280.0060.04512.40
5.4.270.0070.04612.40
5.4.260.0070.04212.40
5.4.250.0070.03912.40
5.4.240.0040.04012.39
5.4.230.0080.03712.39
5.4.220.0060.04112.39
5.4.210.0070.03612.39
5.4.200.0070.03712.39
5.4.190.0050.03912.38
5.4.180.0060.04312.38
5.4.170.0060.03812.40
5.4.160.0060.04312.39
5.4.150.0080.03512.39
5.4.140.0050.04112.07
5.4.130.0060.03912.06
5.4.120.0050.03912.02
5.4.110.0050.03712.02
5.4.100.0080.03812.02
5.4.90.0100.03712.02
5.4.80.0030.04012.02
5.4.70.0040.04112.01
5.4.60.0060.03612.01
5.4.50.0090.03812.01
5.4.40.0040.03612.00
5.4.30.0060.03612.00
5.4.20.0090.04412.00
5.4.10.0050.03712.00
5.4.00.0100.03611.48
5.3.290.0090.04912.80
5.3.280.0090.03812.71
5.3.270.0100.04212.73
5.3.260.0100.04012.72
5.3.250.0070.03912.72
5.3.240.0100.03612.72
5.3.230.0080.03512.71
5.3.220.0120.04012.68
5.3.210.0070.04012.68
5.3.200.0050.03712.68
5.3.190.0070.04312.68
5.3.180.0110.03612.67
5.3.170.0080.04012.67
5.3.160.0080.04012.68
5.3.150.0100.03812.68
5.3.140.0070.04212.66
5.3.130.0140.03812.65
5.3.120.0060.04312.66
5.3.110.0110.04512.66
5.3.100.0120.04612.12
5.3.90.0070.04612.10
5.3.80.0060.04112.09
5.3.70.0100.03812.09
5.3.60.0050.04812.08
5.3.50.0100.03612.03
5.3.40.0060.03612.03
5.3.30.0070.03611.98
5.3.20.0070.03911.76
5.3.10.0090.03811.73
5.3.00.0100.04511.72
5.2.170.0060.0349.22
5.2.160.0070.0369.22
5.2.150.0090.0359.22
5.2.140.0060.0369.22
5.2.130.0050.0309.18
5.2.120.0070.0359.18
5.2.110.0070.0419.19
5.2.100.0070.0309.18
5.2.90.0060.0339.18
5.2.80.0040.0339.17
5.2.70.0060.0329.18
5.2.60.0060.0319.13
5.2.50.0080.0309.09
5.2.40.0050.0319.07
5.2.30.0030.0349.05
5.2.20.0060.0279.04
5.2.10.0070.0378.95
5.2.00.0020.0398.81
5.1.60.0060.0268.09
5.1.50.0010.0298.09
5.1.40.0070.0278.07
5.1.30.0090.0238.42
5.1.20.0040.0288.45
5.1.10.0170.0758.16
5.1.00.0050.0328.16
5.0.50.0060.0226.64
5.0.40.0070.0176.50
5.0.30.0040.0336.32
5.0.20.0040.0226.28
5.0.10.0040.0246.26
5.0.00.0080.0336.25
4.4.90.0070.0144.78
4.4.80.0050.0154.75
4.4.70.0020.0174.75
4.4.60.0030.0174.76
4.4.50.0000.0184.77
4.4.40.0040.0254.71
4.4.30.0020.0174.76
4.4.20.0020.0194.85
4.4.10.0040.0164.85
4.4.00.0040.0264.76
4.3.110.0040.0234.66
4.3.100.0040.0164.66
4.3.90.0050.0174.63
4.3.80.0030.0314.59
4.3.70.0060.0134.63
4.3.60.0040.0204.63
4.3.50.0050.0204.63
4.3.40.0050.0274.54
4.3.30.0010.0183.30
4.3.20.0050.0403.28
4.3.10.0020.0213.24
4.3.00.0270.0206.76

preferences:
23.14 ms | 401 KiB | 5 Q