3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Node { protected $_type; protected $_props; protected $_children; public function __construct($type, array $props = null) { $this->_type = $type; $this->_props = array(); $this->_children = array(); if (null !== $props) { $this->setProps($props); } } public function getType() { return $this->_type; } public function addChild(Euhit_Markup_Latex_Parser_Node $node) { $this->_children[] = $node; return $this; } public function getChildren() { return $this->_children; } public function setProps(array $props) { foreach ($props as $key => $value) { $this->setProp($key, $value); } return $this; } public function setProp($key, $value) { $this->_props[$key] = $value; return $this; } public function &getProp($key) { return isset($this->_props[$key]) ? $this->_props[$key] : null; } public function __set($key, $value) { $this->setProp($key, $value); } public function &__get($key) { return $this->getProp($key); } } $node = new Node; $dupa = &$node->dupa; $dupa .= 'DUUPA!!!'; echo $node->dupa;

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.60.0040.01118.43
8.3.50.0150.00521.14
8.3.40.0040.01118.92
8.3.30.0120.00318.84
8.3.20.0080.00018.73
8.3.10.0090.00021.09
8.3.00.0180.00021.91
8.2.180.0090.01217.00
8.2.170.0040.01122.96
8.2.160.0100.00320.52
8.2.150.0070.00024.18
8.2.140.0090.00024.66
8.2.130.0000.00826.16
8.2.120.0040.00420.94
8.2.110.0030.00720.52
8.2.100.0080.00417.84
8.2.90.0000.00817.84
8.2.80.0030.00617.97
8.2.70.0030.00617.50
8.2.60.0080.00017.80
8.2.50.0090.00018.07
8.2.40.0000.00818.16
8.2.30.0040.00421.22
8.2.20.0000.00817.68
8.2.10.0000.00717.58
8.2.00.0080.00017.78
8.1.280.0120.00625.92
8.1.270.0030.00523.99
8.1.260.0120.00626.35
8.1.250.0000.00828.09
8.1.240.0040.00823.78
8.1.230.0030.00922.08
8.1.220.0030.00617.74
8.1.210.0000.00818.77
8.1.200.0090.00017.22
8.1.190.0030.00517.22
8.1.180.0080.00018.10
8.1.170.0060.00318.51
8.1.160.0070.00018.84
8.1.150.0040.00418.45
8.1.140.0060.00317.31
8.1.130.0030.00517.77
8.1.120.0050.00317.36
8.1.110.0040.00417.37
8.1.100.0040.00417.37
8.1.90.0000.00717.24
8.1.80.0060.00317.43
8.1.70.0070.00017.37
8.1.60.0030.00617.43
8.1.50.0000.00917.32
8.1.40.0030.00617.49
8.1.30.0000.00817.60
8.1.20.0040.00417.68
8.1.10.0070.00017.56
8.1.00.0000.01017.43
8.0.300.0090.00019.98
8.0.290.0000.00816.63
8.0.280.0070.00018.45
8.0.270.0080.00017.17
8.0.260.0060.00016.84
8.0.250.0040.00416.94
8.0.240.0030.00616.85
8.0.230.0000.00716.98
8.0.220.0030.00616.83
8.0.210.0000.00816.87
8.0.200.0030.00316.97
8.0.190.0050.00316.97
8.0.180.0070.00016.89
8.0.170.0060.00316.82
8.0.160.0000.00716.92
8.0.150.0030.00316.88
8.0.140.0000.00716.91
8.0.130.0030.00313.32
8.0.120.0050.00216.91
8.0.110.0050.00316.77
8.0.100.0000.00716.96
8.0.90.0030.00416.95
8.0.80.0100.00416.86
8.0.70.0030.00516.97
8.0.60.0080.00016.79
8.0.50.0030.00516.84
8.0.30.0150.00417.16
8.0.20.0110.00917.40
8.0.10.0040.00416.86
8.0.00.0100.01216.73
7.4.330.0000.00514.71
7.4.320.0030.00316.33
7.4.300.0000.00616.56
7.4.290.0000.00716.48
7.4.280.0070.00016.45
7.4.270.0030.00316.47
7.4.260.0030.00313.18
7.4.250.0030.00516.53
7.4.240.0000.00716.65
7.4.230.0000.00716.34
7.4.220.0210.01016.36
7.4.210.0060.00816.47
7.4.200.0050.00216.45
7.4.190.0030.00616.70
7.4.160.0170.00016.30
7.4.150.0140.00317.40
7.4.140.0080.00917.86
7.4.130.0080.01116.42
7.4.120.0070.01016.56
7.4.110.0030.01416.57
7.4.100.0060.01016.70
7.4.90.0070.01416.44
7.4.80.0130.00619.39
7.4.70.0030.01316.54
7.4.60.0110.01116.48
7.4.50.0000.00816.52
7.4.40.0000.00922.77
7.4.30.0070.01016.54
7.4.00.0110.00115.01
7.3.330.0020.00213.39
7.3.320.0000.00513.34
7.3.310.0030.00316.42
7.3.300.0040.00216.41
7.3.290.0040.01116.38
7.3.280.0080.00916.36
7.3.270.0110.00617.40
7.3.260.0070.01118.24
7.3.250.0070.01316.37
7.3.240.0080.00916.50
7.3.230.0100.01316.45
7.3.210.0080.00816.54
7.3.200.0080.01219.39
7.3.190.0130.01016.24
7.3.180.0060.00916.39
7.3.170.0070.01316.32
7.3.160.0160.00016.43
7.3.120.0070.00714.77
7.3.110.0090.00614.59
7.3.100.0070.00714.86
7.3.90.0030.00714.80
7.3.80.0060.01014.73
7.3.70.0080.00614.61
7.3.60.0060.00914.86
7.3.50.0070.00714.93
7.3.40.0030.00614.76
7.3.30.0030.01214.82
7.3.20.0100.00016.81
7.3.10.0060.00716.34
7.3.00.0060.00316.54
7.2.330.0140.00316.47
7.2.320.0030.01416.23
7.2.310.0070.01016.52
7.2.300.0110.00616.21
7.2.290.0070.01016.62
7.2.250.0030.01014.93
7.2.240.0050.00515.03
7.2.230.0060.00614.93
7.2.220.0030.01115.01
7.2.210.0090.00614.91
7.2.200.0030.00914.89
7.2.190.0030.01214.73
7.2.180.0100.00314.77
7.2.170.0070.00714.97
7.2.160.0030.01314.61
7.2.150.0030.00616.85
7.2.140.0090.00616.83
7.2.130.0060.00616.55
7.2.120.0110.00416.64
7.2.110.0080.00316.72
7.2.100.0060.00916.73
7.2.90.0070.00716.73
7.2.80.0050.00516.96
7.2.70.0060.00316.86
7.2.60.0060.00716.69
7.2.50.0060.00916.96
7.2.40.0080.00416.78
7.2.30.0070.00716.75
7.2.20.0000.01116.85
7.2.10.0130.00016.71
7.2.00.0090.00616.80
7.1.330.0040.00815.52
7.1.320.0110.00715.59
7.1.310.0030.00915.79
7.1.300.0060.00915.31
7.1.290.0070.00715.57
7.1.280.0070.01015.74
7.1.270.0070.00715.46
7.1.260.0040.01115.50
7.1.250.0070.01015.53
7.1.240.0090.00315.77
7.1.230.0060.00615.53
7.1.220.0030.01015.48
7.1.210.0100.00315.57
7.1.200.0050.00715.62
7.1.190.0120.00315.35
7.1.180.0060.00615.48
7.1.170.0000.00915.79
7.1.160.0000.00915.63
7.1.150.0000.00915.73
7.1.140.0030.00815.46
7.1.130.0070.00715.39
7.1.120.0030.00615.72
7.1.110.0030.01015.53
7.1.100.0070.00516.82
7.1.90.0030.00815.44
7.1.80.0000.01315.36
7.1.70.0050.00416.39
7.1.60.0080.01017.59
7.1.50.0070.00716.13
7.1.40.0030.01115.75
7.1.30.0070.00715.60
7.1.20.0000.00815.38
7.1.10.0030.00615.68
7.1.00.0070.03418.84
7.0.330.0150.00015.45
7.0.320.0100.00315.59
7.0.310.0030.01015.60
7.0.300.0040.00415.38
7.0.290.0030.00715.23
7.0.280.0090.00315.42
7.0.270.0000.01315.34
7.0.260.0060.00615.47
7.0.250.0030.01015.45
7.0.240.0000.01215.37
7.0.230.0030.00715.22
7.0.220.0000.01315.46
7.0.210.0000.01515.43
7.0.200.0050.00816.01
7.0.190.0070.00715.34
7.0.180.0070.00715.47
7.0.170.0030.01015.17
7.0.160.0030.00515.43
7.0.150.0070.00715.49
7.0.140.0070.03718.82
7.0.130.0080.00015.48
7.0.120.0030.00615.28
7.0.110.0090.00415.12
7.0.100.0030.00715.62
7.0.90.0030.01315.27
7.0.80.0080.00615.23
7.0.70.0060.03518.43
7.0.60.0030.04518.65
7.0.50.0030.02818.79
7.0.40.0030.03116.88
7.0.30.0050.03316.83
7.0.20.0050.02516.84
7.0.10.0060.02616.75
7.0.00.0070.04316.82
5.6.400.0030.00914.54
5.6.390.0060.00614.39
5.6.380.0000.01114.23
5.6.370.0040.00714.49
5.6.360.0040.01214.77
5.6.350.0000.01214.61
5.6.340.0030.00614.41
5.6.330.0120.00314.51
5.6.320.0000.01314.63
5.6.310.0070.00714.51
5.6.300.0040.01214.50
5.6.290.0030.00814.50
5.6.280.0050.03917.79
5.6.270.0060.00314.31
5.6.260.0080.00014.63
5.6.250.0060.00614.74
5.6.240.0110.00614.32
5.6.230.0030.01014.73
5.6.220.0060.04117.40
5.6.210.0020.04417.42
5.6.200.0070.04717.75
5.6.190.0040.02417.82
5.6.180.0050.02317.75
5.6.170.0050.04717.72
5.6.160.0030.04817.82
5.6.150.0020.05017.91
5.6.140.0050.02417.70
5.6.130.0040.04717.86
5.6.120.0050.03417.91
5.6.110.0020.05017.86
5.6.100.0080.04317.59
5.6.90.0050.04317.75
5.6.80.0080.04317.47
5.6.70.0030.04317.47
5.6.60.0040.02517.40
5.6.50.0030.04617.40
5.6.40.0040.04217.44
5.6.30.0050.03517.46
5.6.20.0060.04417.48
5.6.10.0070.04417.38
5.6.00.0050.03317.46
5.5.380.0100.00714.44
5.5.370.0000.01214.36
5.5.360.0070.03817.48
5.5.350.0020.05217.52
5.5.340.0030.02717.88
5.5.330.0030.04717.59
5.5.320.0030.04517.72
5.5.310.0050.04217.59
5.5.300.0010.04817.79
5.5.290.0030.04617.69
5.5.280.0070.02217.55
5.5.270.0040.04717.70
5.5.260.0050.04417.71
5.5.250.0100.04117.57
5.5.240.0050.04517.36
5.5.230.0070.04017.26
5.5.220.0050.02217.34
5.5.210.0080.04217.22
5.5.200.0070.03817.24
5.5.190.0070.04317.31
5.5.180.0060.03517.23
5.5.170.0110.00714.43
5.5.160.0050.04517.14
5.5.150.0060.03817.27
5.5.140.0040.04617.35
5.5.130.0060.04517.28
5.5.120.0020.04117.28
5.5.110.0070.02217.22
5.5.100.0020.03217.19
5.5.90.0030.02617.29
5.5.80.0020.02217.12
5.5.70.0030.02217.22
5.5.60.0050.02417.20
5.5.50.0030.02217.05
5.5.40.0060.02216.99
5.5.30.0050.02317.29
5.5.20.0080.02317.21
5.5.10.0070.03317.11
5.5.00.0050.02416.87
5.4.450.0040.04516.54
5.4.440.0050.02116.51
5.4.430.0070.04016.48
5.4.420.0030.04616.36
5.4.410.0060.04116.46
5.4.400.0000.03816.29
5.4.390.0050.04116.30
5.4.380.0040.02916.21
5.4.370.0020.03616.36
5.4.360.0030.04416.38
5.4.350.0050.04116.21
5.4.340.0030.02916.20
5.4.330.0060.00913.55
5.4.320.0020.04916.35
5.4.310.0030.02816.22
5.4.300.0030.04316.34
5.4.290.0090.03616.35
5.4.280.0040.02816.23
5.4.270.0030.02016.37
5.4.260.0070.02016.35
5.4.250.0050.02716.21
5.4.240.0070.02816.34
5.4.230.0030.02116.39
5.4.220.0040.02916.39
5.4.210.0040.04216.34
5.4.200.0020.04816.38
5.4.190.0080.03016.40
5.4.180.0060.01816.33
5.4.170.0030.02516.32
5.4.160.0050.03216.28
5.4.150.0100.03816.39
5.4.140.0130.02614.97
5.4.130.0040.03614.99
5.4.120.0060.01814.95
5.4.110.0030.01914.94
5.4.100.0050.03914.95
5.4.90.0090.02015.03
5.4.80.0010.02014.94
5.4.70.0040.01915.02
5.4.60.0020.02615.00
5.4.50.0000.02514.90
5.4.40.0030.03115.02
5.4.30.0050.03814.96
5.4.20.0030.02014.97
5.4.10.0010.02314.94
5.4.00.0040.01914.71
5.3.290.0020.03614.16
5.3.280.0050.02114.11
5.3.270.0030.02314.05
5.3.260.0050.02414.16
5.3.250.0040.03514.10
5.3.240.0040.03514.06
5.3.230.0080.02314.09
5.3.220.0030.02114.04
5.3.210.0060.01814.08
5.3.200.0030.02314.10
5.3.190.0040.03214.04
5.3.180.0030.03014.12
5.3.170.0020.02514.12
5.3.160.0030.02014.07
5.3.150.0010.02314.09
5.3.140.0030.02314.12
5.3.130.0050.02014.06
5.3.120.0070.01914.04
5.3.110.0050.02114.02
5.3.100.0060.02613.87
5.3.90.0050.01713.82
5.3.80.0020.01913.81
5.3.70.0020.01713.87
5.3.60.0050.03513.82
5.3.50.0070.01813.76
5.3.40.0020.02413.79
5.3.30.0050.02013.73
5.3.20.0070.02313.58
5.3.10.0030.01913.63
5.3.00.0060.02013.67
5.2.170.0000.03013.55
5.2.160.0000.03013.55
5.2.150.0000.03013.55
5.2.140.0000.03013.55
5.2.130.0000.03713.55
5.2.120.0030.02713.55
5.2.110.0000.02713.55
5.2.100.0030.02713.55
5.2.90.0000.03313.55
5.2.80.0000.03013.55
5.2.70.0000.03013.55
5.2.60.0000.03713.55
5.2.50.0000.04713.55
5.2.40.0000.05313.55
5.2.30.0030.03713.55
5.2.20.0000.03013.55
5.2.10.0000.03013.55
5.2.00.0000.02313.55
5.1.60.0000.03313.55
5.1.50.0030.05713.55
5.1.40.0030.05313.55
5.1.30.0030.04013.55
5.1.20.0030.04313.55
5.1.10.0030.05713.55
5.1.00.0030.04013.55
5.0.50.0000.04713.55
5.0.40.0070.04013.55
5.0.30.0000.05313.55
5.0.20.0000.03313.55
5.0.10.0070.04013.55
5.0.00.0030.05313.55
4.4.90.0000.01313.55
4.4.80.0030.01013.55
4.4.70.0000.01713.55
4.4.60.0000.01313.55
4.4.50.0000.01313.55
4.4.40.0030.04713.55
4.4.30.0070.03313.55
4.4.20.0000.03713.55
4.4.10.0000.03713.55
4.4.00.0000.05713.55
4.3.110.0000.03713.55
4.3.100.0030.03013.55
4.3.90.0070.02713.55
4.3.80.0000.05713.55
4.3.70.0030.03313.55
4.3.60.0030.03313.55
4.3.50.0000.03713.55
4.3.40.0000.05313.55
4.3.30.0070.03013.55
4.3.20.0000.03713.55
4.3.10.0100.02313.55
4.3.00.0000.04013.55

preferences:
65.06 ms | 401 KiB | 5 Q