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) { if (!isset($this->_props[$key])) { $this->_props[$key] = null; } return $this->_props[$key]; } public function __set($key, $value) { $this->setProp($key, $value); } public function &__get($key) { return $this->getProp($key); } } $node = new Node(1024); $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.70.0180.00318.39
8.3.60.0120.00916.50
8.3.50.0110.00822.05
8.3.40.0110.00418.84
8.3.30.0070.00718.99
8.3.20.0050.00320.38
8.3.10.0050.00323.48
8.3.00.0000.00819.50
8.2.180.0070.01418.41
8.2.170.0140.00022.96
8.2.160.0160.00320.39
8.2.150.0000.00724.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00422.15
8.2.110.0080.00022.08
8.2.100.0070.00717.72
8.2.90.0000.00819.21
8.2.80.0040.00417.97
8.2.70.0030.00617.75
8.2.60.0060.00318.04
8.2.50.0080.00018.07
8.2.40.0000.00819.91
8.2.30.0000.00718.13
8.2.20.0000.00817.74
8.2.10.0040.00418.12
8.2.00.0080.00017.77
8.1.280.0070.00725.92
8.1.270.0040.00423.83
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0060.00323.62
8.1.230.0080.00319.08
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00517.35
8.1.190.0030.00517.35
8.1.180.0060.00318.10
8.1.170.0040.00418.70
8.1.160.0000.00722.02
8.1.150.0040.00418.70
8.1.140.0040.00417.52
8.1.130.0030.00317.90
8.1.120.0040.00417.39
8.1.110.0070.00017.48
8.1.100.0000.00817.52
8.1.90.0040.00417.44
8.1.80.0000.00817.39
8.1.70.0000.00717.34
8.1.60.0030.00717.65
8.1.50.0000.00917.46
8.1.40.0030.00617.44
8.1.30.0050.00317.52
8.1.20.0000.00717.70
8.1.10.0040.00417.54
8.1.00.0000.00817.56
8.0.300.0000.00718.77
8.0.290.0050.00217.16
8.0.280.0030.00318.52
8.0.270.0020.00517.31
8.0.260.0000.00617.17
8.0.250.0000.00817.01
8.0.240.0000.00716.95
8.0.230.0040.00416.81
8.0.220.0000.00716.96
8.0.210.0000.00716.91
8.0.200.0070.00016.87
8.0.190.0090.00017.00
8.0.180.0050.00216.94
8.0.170.0050.00216.82
8.0.160.0000.00816.76
8.0.150.0070.00016.91
8.0.140.0040.00416.73
8.0.130.0030.00313.34
8.0.120.0000.00816.89
8.0.110.0050.00216.84
8.0.100.0000.00816.70
8.0.90.0000.00716.71
8.0.80.0040.01216.93
8.0.70.0090.00016.79
8.0.60.0000.00716.85
8.0.50.0040.00416.78
8.0.30.0070.01416.97
8.0.20.0140.00617.40
8.0.10.0000.00716.90
8.0.00.0080.00916.83
7.4.330.0020.00215.14
7.4.320.0030.00316.53
7.4.300.0030.00316.60
7.4.290.0070.00016.61
7.4.280.0030.00316.52
7.4.270.0040.00416.61
7.4.260.0070.00016.62
7.4.250.0060.00316.38
7.4.240.0050.00216.46
7.4.230.0030.00316.50
7.4.220.0060.01216.45
7.4.210.0050.00916.59
7.4.200.0030.00316.64
7.4.190.0080.00016.77
7.4.160.0090.01516.27
7.4.150.0140.00317.40
7.4.140.0120.00917.86
7.4.130.0100.01016.48
7.4.120.0080.00816.55
7.4.110.0070.01016.51
7.4.100.0030.01316.63
7.4.90.0110.00616.61
7.4.80.0140.00619.39
7.4.70.0130.00716.53
7.4.60.0140.00316.42
7.4.50.0000.00916.35
7.4.40.0110.01116.46
7.4.30.0160.00816.57
7.4.00.0080.00815.08
7.3.330.0000.00513.36
7.3.320.0060.00013.30
7.3.310.0040.00416.43
7.3.300.0000.00616.28
7.3.290.0060.00916.39
7.3.280.0120.00516.33
7.3.270.0070.01117.40
7.3.260.0070.01016.42
7.3.250.0130.00516.63
7.3.240.0150.00716.55
7.3.230.0090.00616.54
7.3.210.0040.01316.25
7.3.200.0060.01619.39
7.3.190.0060.01216.64
7.3.180.0090.01216.52
7.3.170.0060.00916.27
7.3.160.0120.00316.64
7.3.120.0070.01114.91
7.3.110.0070.01114.61
7.3.100.0070.00514.62
7.3.90.0060.00614.72
7.3.80.0090.00714.79
7.3.70.0120.00514.74
7.3.60.0070.00714.76
7.3.50.0080.00214.94
7.3.40.0000.01414.66
7.3.30.0030.01014.70
7.3.20.0060.00816.68
7.3.10.0030.01016.81
7.3.00.0070.00716.64
7.2.330.0100.01016.48
7.2.320.0080.01116.80
7.2.310.0100.01316.63
7.2.300.0060.01116.72
7.2.290.0100.00716.80
7.2.250.0000.01615.03
7.2.240.0070.01215.31
7.2.230.0050.01115.14
7.2.220.0050.00915.12
7.2.210.0100.00614.91
7.2.200.0080.00715.19
7.2.190.0100.00515.01
7.2.180.0040.00915.15
7.2.170.0070.00915.11
7.2.160.0070.00715.18
7.2.150.0050.00517.09
7.2.140.0040.01117.16
7.2.130.0060.01017.00
7.2.120.0040.00817.00
7.2.110.0060.00617.16
7.2.100.0060.01016.78
7.2.90.0040.01117.09
7.2.80.0060.01316.75
7.2.70.0080.00816.80
7.2.60.0040.01517.11
7.2.50.0040.01516.86
7.2.40.0070.01016.88
7.2.30.0070.00717.13
7.2.20.0030.01416.75
7.2.10.0000.01316.58
7.2.00.0060.00818.10
7.1.330.0030.01215.99
7.1.320.0080.00215.71
7.1.310.0030.00915.93
7.1.300.0050.00815.78
7.1.290.0030.01015.80
7.1.280.0070.00715.81
7.1.270.0020.01315.75
7.1.260.0070.00815.75
7.1.250.0030.01015.74
7.1.100.0040.00718.33
7.1.70.0050.00517.23
7.1.60.0100.01419.46
7.1.50.0200.01334.93
7.1.00.0100.07022.41
7.0.200.0000.00816.82
7.0.140.0100.06721.90
7.0.110.0130.08319.93
7.0.100.0000.08719.95
7.0.90.0030.07719.96
7.0.80.0100.06019.96
7.0.70.0200.07720.00
7.0.60.0070.05020.05
7.0.50.0030.07720.02
7.0.40.0170.07019.86
7.0.30.0030.06019.65
7.0.20.0030.09019.77
7.0.10.0030.05719.73
7.0.00.0030.08019.88
5.6.280.0100.06320.84
5.6.260.0170.06320.64
5.6.250.0130.07020.61
5.6.240.0100.08320.71
5.6.230.0030.07320.50
5.6.220.0070.05020.86
5.6.210.0100.07320.82
5.6.200.0100.08320.50
5.6.190.0030.08720.71
5.6.180.0070.07720.57
5.6.170.0100.07320.57
5.6.160.0100.04720.58
5.6.150.0170.07020.63
5.6.140.0030.07720.57
5.6.130.0030.04020.57
5.6.120.0030.04320.64
5.6.110.0000.04720.61
5.6.100.0070.04020.56
5.6.90.0030.04020.63
5.6.80.0070.03720.02
5.6.70.0070.03719.95
5.6.60.0030.05020.05
5.6.50.0000.08019.96
5.6.40.0070.07319.93
5.6.30.0100.07019.93
5.6.20.0030.04020.22
5.6.10.0100.03020.22
5.6.00.0070.03719.95
5.5.380.0070.07017.56
5.5.370.0070.07717.52
5.5.360.0070.07317.59
5.5.350.0030.08317.75
5.5.340.0070.04317.93
5.5.330.0170.07317.93
5.5.320.0200.05318.10
5.5.310.0070.08017.91
5.5.300.0130.07718.13
5.5.290.0070.06717.90
5.5.280.0070.04318.22
5.5.270.0000.04317.90
5.5.260.0030.04017.91
5.5.250.0000.04318.06
5.5.240.0000.04717.48
5.5.230.0030.04017.47
5.5.220.0030.07717.30
5.5.210.0030.03717.43
5.5.200.0070.07317.20
5.5.190.0130.06017.48
5.5.180.0070.05017.27
5.5.160.0030.05317.27
5.5.150.0030.04017.27
5.5.140.0000.04017.42
5.5.130.0070.03717.39
5.5.120.0070.04017.28
5.5.110.0030.04717.25
5.5.100.0070.03717.38
5.5.90.0030.03017.50
5.5.80.0030.03717.18
5.5.70.0070.03717.50
5.5.60.0070.02717.35
5.5.50.0030.03017.30
5.5.40.0000.03317.29
5.5.30.0030.03017.15
5.5.20.0000.03717.20
5.5.10.0030.03317.37
5.5.00.0100.04317.16
5.4.450.0030.05319.66
5.4.440.0000.04319.51
5.4.430.0000.04319.51
5.4.420.0070.03719.35
5.4.410.0070.03719.20
5.4.400.0070.04019.15
5.4.390.0100.04319.14
5.4.380.0030.07319.19
5.4.370.0070.04019.18
5.4.360.0130.07019.17
5.4.350.0070.04719.04
5.4.340.0070.07719.01
5.4.320.0170.02319.01
5.4.310.0030.04018.96
5.4.300.0000.04018.98
5.4.290.0000.04719.17
5.4.280.0000.04319.33
5.4.270.0030.04319.01
5.4.260.0030.04719.03
5.4.250.0070.03319.01
5.4.240.0000.05319.00
5.4.230.0070.03319.13
5.4.220.0070.03319.22
5.4.210.0100.03319.23
5.4.200.0100.03319.16
5.4.190.0030.03319.08
5.4.180.0030.03018.93
5.4.170.0030.03019.02
5.4.160.0000.03319.29
5.4.150.0070.03318.93
5.4.140.0030.08016.56
5.4.130.0030.04716.39
5.4.120.0030.03316.39
5.4.110.0000.03716.42
5.4.100.0030.07016.61
5.4.90.0000.04016.46
5.4.80.0030.08016.56
5.4.70.0070.07016.45
5.4.60.0070.07016.39
5.4.50.0000.05016.29
5.4.40.0070.07316.58
5.4.30.0070.07716.41
5.4.20.0030.07016.49
5.4.10.0100.04316.49
5.4.00.0130.06715.81
5.3.290.0030.06014.72
5.3.280.0070.03014.70
5.3.270.0030.03714.60
5.3.260.0000.03714.75
5.3.250.0070.03014.71
5.3.240.0070.04014.62
5.3.230.0030.03314.64
5.3.220.0100.03314.44
5.3.210.0000.03714.62
5.3.200.0000.04014.58
5.3.190.0070.03714.54
5.3.180.0070.04314.61
5.3.170.0030.04014.44
5.3.160.0030.08014.70
5.3.150.0030.08014.66
5.3.140.0070.07314.71
5.3.130.0070.07314.56
5.3.120.0030.08014.65
5.3.110.0070.07714.44
5.3.100.0070.07014.09
5.3.90.0030.07014.18
5.3.80.0030.07314.18
5.3.70.0100.03713.89
5.3.60.0100.06714.09
5.3.50.0100.07313.98
5.3.40.0030.05013.98
5.3.30.0070.07013.93
5.3.20.0070.07313.94
5.3.10.0030.07313.68
5.3.00.0030.07313.89
5.2.170.0000.06311.23
5.2.160.0030.06011.14
5.2.150.0070.05311.13
5.2.140.0030.06311.16
5.2.130.0030.05711.09
5.2.120.0070.06311.13
5.2.110.0030.03711.14
5.2.100.0100.06011.21
5.2.90.0070.06311.13
5.2.80.0000.06711.08
5.2.70.0000.03711.12
5.2.60.0070.06311.04
5.2.50.0070.05010.89
5.2.40.0070.06311.10
5.2.30.0070.05311.07
5.2.20.0070.04710.95
5.2.10.0030.06010.88
5.2.00.0130.05310.70
5.1.60.0030.0509.98
5.1.50.0070.04310.09
5.1.40.0070.0509.82
5.1.30.0100.05010.21
5.1.20.0070.05310.43
5.1.10.0070.05310.07
5.1.00.0030.05310.10
5.0.50.0000.0439.75
5.0.40.0030.0439.75
5.0.30.0030.0639.75
5.0.20.0130.0339.75
5.0.10.0130.0339.75
5.0.00.0030.0639.75
4.4.90.0030.0339.75
4.4.80.0030.0309.75
4.4.70.0000.0339.75
4.4.60.0070.0279.75
4.4.50.0000.0339.75
4.4.40.0000.0479.75
4.4.30.0070.0309.75
4.4.20.0000.0379.75
4.4.10.0000.0339.75
4.4.00.0030.0339.75
4.3.110.0030.0339.75
4.3.100.0030.0209.75
4.3.90.0000.0209.75
4.3.80.0100.0379.75
4.3.70.0000.0339.75
4.3.60.0030.0309.75
4.3.50.0000.0309.75
4.3.40.0000.0539.75
4.3.30.0030.0279.75
4.3.20.0030.0339.75
4.3.10.0000.0379.75
4.3.00.0030.0339.75

preferences:
47.6 ms | 401 KiB | 5 Q