3v4l.org

run code in 300+ PHP versions simultaneously
<?phpclass MyElement extends \DOMElement { public function __get($name) { return $this->$name; }}$dom = new DOMDocument();$dom->registerNodeClass('DOMElement', 'MyElement');$dom->appendChild($dom->createElement('Foo', 'Bar'));echo $dom->documentElement->nodeValue;

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.0140.00018.55
8.3.50.0050.01321.00
8.3.40.0070.00718.67
8.3.30.0100.00719.00
8.3.20.0070.00020.22
8.3.10.0080.00023.36
8.3.00.0050.00319.13
8.2.180.0040.01116.38
8.2.170.0070.01022.96
8.2.160.0030.01020.32
8.2.150.0000.00824.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0080.00022.18
8.2.110.0030.00620.35
8.2.100.0090.00318.22
8.2.90.0030.00519.08
8.2.80.0040.00417.97
8.2.70.0080.00017.63
8.2.60.0000.00917.93
8.2.50.0040.00418.07
8.2.40.0000.00919.82
8.2.30.0000.00717.85
8.2.20.0040.00417.42
8.2.10.0050.00317.90
8.2.00.0070.00317.45
8.1.280.0090.00625.92
8.1.270.0000.00823.92
8.1.260.0070.00026.35
8.1.250.0060.00328.09
8.1.240.0040.00423.98
8.1.230.0030.00719.05
8.1.220.0030.00617.74
8.1.210.0050.00318.77
8.1.200.0050.00517.10
8.1.190.0000.00817.00
8.1.180.0050.00318.10
8.1.170.0050.00318.37
8.1.160.0030.00321.97
8.1.150.0000.00718.65
8.1.140.0050.00317.30
8.1.130.0030.00517.79
8.1.120.0030.00317.34
8.1.110.0000.00817.20
8.1.100.0000.00717.20
8.1.90.0040.00417.31
8.1.80.0030.00317.30
8.1.70.0040.00417.26
8.1.60.0080.00417.34
8.1.50.0060.00317.25
8.1.40.0000.00817.24
8.1.30.0000.00917.50
8.1.20.0000.00717.53
8.1.10.0050.00317.45
8.1.00.0070.00017.35
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0000.00718.35
8.0.270.0000.00717.10
8.0.260.0030.00317.22
8.0.250.0030.00316.72
8.0.240.0000.00616.80
8.0.230.0030.00316.87
8.0.220.0030.00316.65
8.0.210.0030.00316.61
8.0.200.0020.00516.70
8.0.190.0040.00416.80
8.0.180.0000.00716.82
8.0.170.0040.00416.79
8.0.160.0000.00716.73
8.0.150.0000.00716.82
8.0.140.0000.00716.59
8.0.130.0060.00013.30
8.0.120.0040.00416.70
8.0.110.0040.00416.81
8.0.100.0030.00516.55
8.0.90.0000.00716.64
8.0.80.0150.00016.70
8.0.70.0050.00216.64
8.0.60.0080.00016.72
8.0.50.0070.00016.63
8.0.30.0110.00916.99
8.0.20.0110.00817.40
8.0.10.0000.00716.93
8.0.00.0090.00916.75
7.4.330.0020.00215.02
7.4.320.0000.00616.38
7.4.300.0070.00016.46
7.4.290.0000.00716.38
7.4.280.0040.00416.36
7.4.270.0060.00016.34
7.4.260.0030.00316.35
7.4.250.0040.00416.25
7.4.240.0030.00316.42
7.4.230.0000.00716.45
7.4.220.0130.00316.41
7.4.210.0040.01116.48
7.4.200.0030.00316.55
7.4.160.0190.00816.36
7.4.150.0120.00617.40
7.4.140.0100.00817.86
7.4.130.0080.00816.40
7.4.120.0100.00716.37
7.4.110.0100.00616.54
7.4.100.0100.00716.29
7.4.90.0150.00416.62
7.4.80.0060.01219.39
7.4.70.0070.01016.32
7.4.60.0080.00816.22
7.4.50.0030.00516.39
7.4.40.0060.01016.35
7.4.30.0070.01016.41
7.3.330.0000.00613.01
7.3.320.0030.00313.21
7.3.310.0030.00316.12
7.3.300.0030.00316.11
7.3.290.0100.01016.14
7.3.280.0160.00516.17
7.3.270.0090.00917.40
7.3.260.0140.01016.23
7.3.250.0060.01116.17
7.3.240.0080.00816.27
7.3.230.0070.01016.39
7.3.210.0030.01316.29
7.3.200.0040.01219.39
7.3.190.0120.00916.39
7.3.180.0090.00516.18
7.3.170.0100.00716.44
7.3.160.0090.00916.47
7.2.330.0070.01016.19
7.2.320.0110.00716.51
7.2.310.0000.01716.34
7.2.300.0130.00316.24
7.2.290.0120.00816.67
5.4.340.0060.03412.00
5.4.320.0070.03412.45
5.4.310.0050.03812.45
5.4.300.0060.03512.45
5.4.290.0070.03612.45
5.4.280.0050.03812.35
5.4.270.0090.03912.34
5.4.260.0090.04312.35
5.4.250.0060.04512.35
5.4.240.0050.04112.34
5.4.230.0020.04112.34
5.4.220.0060.04512.34
5.4.210.0070.04712.34
5.4.200.0070.04612.34
5.4.190.0090.04612.33
5.4.180.0080.03912.34
5.4.170.0060.03712.34
5.4.160.0060.03612.34
5.4.150.0040.03612.34
5.4.140.0050.03612.02
5.4.130.0040.03612.01
5.4.120.0060.03411.96
5.4.110.0080.03311.96
5.4.100.0020.04111.96
5.4.90.0070.03511.96
5.4.80.0050.03711.96
5.4.70.0050.03411.96
5.4.60.0050.03411.96
5.4.50.0090.03111.96
5.4.40.0080.03611.95
5.4.30.0070.03311.95
5.4.20.0060.03311.95
5.4.10.0040.03511.95
5.4.00.0050.03511.44

preferences:
37.3 ms | 401 KiB | 5 Q