3v4l.org

run code in 300+ PHP versions simultaneously
<?php function __( $string ) { return $string; } class AtomParser { var $FILE = "php://input"; var $debug = false; public function parse() { $fp = fopen($this->FILE, "r"); while ($data = fread($fp, 4096)) { if($this->debug) $this->content .= $data; if(!xml_parse($parser, $data, feof($fp))) { /* translators: 1: Error message, 2: Line number. */ trigger_error(sprintf(__('XML Error: %1$s at line %2$s')."\n", xml_error_string(xml_get_error_code($parser)), xml_get_current_line_number($parser))); $ret = false; break; } } fclose($fp); } } $atom_parser = new AtomParser(); $atom_parser->parse();

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.5.20.0130.00817.99
8.5.10.0120.00716.49
8.5.00.0120.00919.95
8.4.170.0140.00819.67
8.4.160.0120.01319.71
8.4.150.0060.00616.74
8.4.140.0130.00817.49
8.4.130.0100.00918.63
8.4.120.0110.00924.07
8.4.110.0120.00418.63
8.4.100.0060.00218.98
8.4.90.0070.01220.58
8.4.80.0120.00818.42
8.4.70.0100.01219.52
8.4.60.0120.00818.96
8.4.50.0100.00620.30
8.4.40.0160.00318.34
8.4.30.0090.00620.17
8.4.20.0080.00817.84
8.4.10.0090.00619.46
8.3.300.0130.00820.30
8.3.290.0130.00718.16
8.3.280.0090.01118.20
8.3.270.0110.00816.26
8.3.260.0120.00816.66
8.3.250.0080.00618.77
8.3.240.0060.00919.02
8.3.230.0140.00716.58
8.3.220.0100.00818.82
8.3.210.0090.01016.71
8.3.200.0040.00416.54
8.3.190.0040.00417.16
8.3.180.0110.00717.05
8.3.170.0130.00720.78
8.3.160.0070.01016.57
8.3.150.0160.00317.02
8.3.140.0050.00516.81
8.3.130.0120.00318.27
8.3.120.0090.00620.44
8.3.110.0040.00420.94
8.3.100.0040.00424.06
8.3.90.0120.00326.77
8.3.80.0090.00019.36
8.3.70.0120.00318.18
8.3.60.0110.00418.18
8.3.50.0090.00924.50
8.3.40.0060.00921.85
8.3.30.0070.00718.43
8.3.20.0040.00424.18
8.3.10.0000.00724.66
8.3.00.0000.00826.16
8.2.300.0110.01018.02
8.2.290.0110.00920.50
8.2.280.0120.00722.42
8.2.270.0180.00016.66
8.2.260.0100.00016.47
8.2.250.0060.00616.92
8.2.240.0080.00018.73
8.2.230.0030.00722.58
8.2.220.0090.00037.54
8.2.210.0040.00426.77
8.2.200.0060.00318.88
8.2.190.0140.00416.61
8.2.180.0060.00925.92
8.2.170.0150.00718.96
8.2.160.0130.00022.96
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00426.35
8.2.110.0030.00621.11
8.2.100.0110.00017.72
8.2.90.0050.00317.50
8.2.80.0000.00818.61
8.2.70.0030.00617.50
8.2.60.0000.00817.38
8.2.50.0050.00318.05
8.2.40.0070.00017.91
8.2.30.0040.00418.07
8.2.20.0000.00718.08
8.2.10.0000.00819.18
8.2.00.0060.00319.17
8.1.340.0090.01017.67
8.1.330.0120.00721.82
8.1.320.0110.00717.90
8.1.310.0100.00016.27
8.1.300.0160.00419.87
8.1.290.0090.00330.84
8.1.280.0070.00725.92
8.1.270.0030.00623.99
8.1.260.0040.00428.09
8.1.250.0000.00828.09
8.1.240.0080.00319.16
8.1.230.0080.00422.08
8.1.220.0080.00017.74
8.1.210.0030.00618.77
8.1.200.0040.00417.11
8.1.190.0000.00917.23
8.1.180.0040.00418.10
8.1.170.0040.00418.64
8.1.160.0040.00418.79
8.1.150.0030.00518.81
8.1.140.0040.00420.62
8.1.130.0030.00319.99
8.1.120.0000.00817.42
8.1.110.0040.00417.34
8.1.100.0000.00817.43
8.1.90.0000.00717.40
8.1.80.0030.00617.29
8.1.70.0070.00017.41
8.1.60.0040.00417.63
8.1.50.0090.00017.50
8.1.40.0030.00517.42
8.1.30.0000.00817.55
8.1.20.0040.00417.65
8.1.10.0000.00817.45
8.1.00.0030.00517.52
8.0.300.0040.00418.77
8.0.290.0090.00016.75
8.0.280.0080.00018.36
8.0.270.0060.00318.02
8.0.260.0030.00318.48
8.0.250.0070.00016.92
8.0.240.0000.00616.98
8.0.230.0000.00816.93
8.0.220.0000.00716.77
8.0.210.0000.00816.85
8.0.200.0000.00616.95
8.0.190.0070.00016.92
8.0.180.0000.00716.80
8.0.170.0090.00016.89
8.0.160.0000.00716.90
8.0.150.0000.00716.87
8.0.140.0040.00416.78
8.0.130.0030.00313.23
8.0.120.0040.00416.88
8.0.110.0040.00416.92
8.0.100.0050.00316.84
8.0.90.0040.00416.76
8.0.80.0090.00516.81
8.0.70.0000.00816.74
8.0.60.0000.00716.77
8.0.50.0030.00516.86
8.0.30.0070.01017.20
8.0.20.0130.00517.07
8.0.10.0020.00517.04
8.0.00.0130.00716.62
7.4.330.0020.00215.55
7.4.320.0000.00716.31
7.4.300.0030.00316.49
7.4.290.0050.00316.48
7.4.280.0040.00416.51
7.4.270.0070.00016.61
7.4.260.0050.00013.29
7.4.250.0040.00416.46
7.4.240.0000.00716.66
7.4.230.0080.00016.68
7.4.220.0040.00416.65
7.4.210.0080.00816.56
7.4.200.0000.00616.30
7.4.130.0100.01116.40
7.4.120.0070.01116.54
7.4.110.0110.00716.41
7.4.100.0150.00616.54
7.4.90.0150.00516.57
7.4.80.0090.01516.50
7.4.70.0090.01616.47
7.4.60.0140.00716.51
7.4.50.0290.00416.52
7.4.40.0070.01516.32
7.4.30.0140.01416.50
7.4.20.0170.01316.30
7.4.10.0230.00616.26
7.4.00.0090.00916.46
7.3.330.0040.00416.32
7.3.320.0060.00013.04
7.3.310.0030.00616.21
7.3.300.0070.00016.27
7.3.290.0080.01116.27
7.3.260.0060.01116.18
7.3.240.0110.00816.34
7.3.230.0140.00316.44
7.3.220.0090.00916.27
7.3.210.0100.01316.34
7.3.200.0150.00816.32
7.3.190.0140.00816.17
7.3.180.0110.01116.36
7.3.170.0280.00416.48
7.3.160.0180.00516.30
7.3.150.0240.01016.18
7.3.140.0240.01416.31
7.3.130.0220.00316.50
7.3.120.0280.00016.15
7.3.110.0120.01216.19
7.3.100.0240.00716.33
7.3.90.0200.00916.18
7.3.80.0150.01116.26
7.3.70.0090.01216.15
7.3.60.0090.01516.20
7.3.50.0160.00416.14
7.3.40.0230.00316.14
7.3.30.0120.00816.41
7.3.20.0080.01216.20
7.3.10.0100.01616.31
7.3.00.0100.00816.35
7.2.340.0160.00016.32
7.2.330.0100.01016.75
7.2.320.0100.01016.44
7.2.310.0160.00816.77
7.2.300.0130.00716.47
7.2.290.0230.00416.22
7.2.280.0150.01116.58
7.2.270.0110.01516.29
7.2.260.0190.00816.46
7.2.250.0180.00716.65
7.2.240.0130.01116.63
7.2.230.0230.00816.74
7.2.220.0130.00716.36
7.2.210.0080.01216.40
7.2.200.0150.01016.55
7.2.190.0150.00516.56
7.2.180.0190.00816.57
7.2.170.0190.00516.57
7.2.160.0170.00616.63
7.2.150.0140.01416.45
7.2.140.0110.01416.60
7.2.130.0150.00416.55
7.2.120.0160.00316.43
7.2.110.0100.01016.50
7.2.100.0030.01416.62
7.2.90.0080.01116.57
7.2.80.0080.00816.59
7.2.70.0060.01216.63
7.2.60.0110.00816.62
7.2.50.0420.02116.36
7.2.40.0200.01216.76
7.2.30.0330.00016.74
7.2.20.0250.00616.50
7.2.10.0250.00616.49
7.2.00.0230.00916.63

preferences:
41.06 ms | 403 KiB | 5 Q