3v4l.org

run code in 300+ PHP versions simultaneously
<?php $file = "index.php"; $line = 20; $type = "PHP_ERROR"; $friendly_errors["PHP_ERROR"] = "PHP Error"; $my_message = "Testo"; $format_backtrace = ""; $error_data = "<error>".PHP_EOL; $error_data .= "\t<dateline>".time()."</dateline>".PHP_EOL; $error_data .= "\t<script>".$file."</script>".PHP_EOL; $error_data .= "\t<line>".$line."</line>".PHP_EOL; $error_data .= "\t<type>".$type."</type>".PHP_EOL; $error_data .= "\t<friendly_type>".$friendly_errors[$type]."</friendly_type>".PHP_EOL; $error_data .= "\t<message>".$my_message."</message>".PHP_EOL; $error_data .= "\t<backtrace>".$format_backtrace."</backtrace>".PHP_EOL; $error_data .= "</error>".PHP_EOL; $i = 0; $doc = new DOMDocument(); $doc->loadXML($error_data); $errors = $doc->getElementsByTagName("error"); $dateline = $errors->item($i)->getElementsByTagName("dateline"); $file = $errors->item($i)->getElementsByTagName("script"); $line = $errors->item($i)->getElementsByTagName("line"); $type = $errors->item($i)->getElementsByTagName("type"); var_dump($dateline, $file, $line, $type);

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)
7.3.120.0040.01515.24
7.3.110.0070.01014.68
7.3.100.0070.01014.88
7.3.90.0090.00915.13
7.3.80.0070.00414.91
7.3.70.0030.00715.22
7.3.60.0040.00715.01
7.3.50.0140.00014.86
7.3.40.0040.00815.12
7.3.30.0120.00314.74
7.3.20.0060.00616.93
7.3.10.0030.01016.70
7.3.00.0030.01317.08
7.2.240.0000.01515.41
7.2.230.0040.01514.95
7.2.220.0060.01215.22
7.2.210.0060.00915.26
7.2.200.0000.01415.14
7.2.190.0100.00315.14
7.2.180.0060.00315.16
7.2.170.0110.00715.27
7.2.160.0070.01115.15
7.2.150.0060.00317.10
7.2.140.0070.00716.97
7.2.130.0070.00417.13
7.2.120.0060.00917.01
7.2.110.0000.01617.00
7.2.100.0060.01016.95
7.2.90.0060.01317.21
7.2.80.0070.01016.92
7.2.70.0110.00716.92
7.2.60.0090.00417.03
7.2.50.0110.00617.18
7.2.40.0000.01316.96
7.2.30.0060.00617.25
7.2.20.0000.01416.88
7.2.10.0070.01017.07
7.2.00.0030.01018.23
7.1.330.0090.00916.12
7.1.320.0100.00715.96
7.1.310.0090.00615.92
7.1.300.0070.00715.93
7.1.290.0060.00315.85
7.1.280.0100.00715.87
7.1.270.0060.01015.60
7.1.260.0060.00615.91
7.1.250.0070.00715.80
7.1.100.0060.00618.37
7.1.70.0000.01417.43
7.1.60.0180.00619.13
7.1.50.0060.01617.09
7.1.00.0030.07722.47
7.0.200.0000.00716.86
7.0.100.0200.08320.07
7.0.90.0530.07319.95
7.0.80.0600.07720.04
7.0.70.0430.07020.23
7.0.60.0430.09320.15
7.0.50.0600.07020.28
7.0.40.0000.09320.03
7.0.30.0030.08720.14
7.0.20.0070.08320.12
7.0.10.0130.08020.26
7.0.00.0130.07720.23
5.6.280.0000.05721.11
5.6.250.0130.04020.67
5.6.240.0070.04020.68
5.6.230.0100.08320.86
5.6.220.0070.06320.69
5.6.210.0070.08320.72
5.6.200.0070.09021.13
5.6.190.0170.05021.12
5.6.180.0070.06721.10
5.6.170.0070.07321.13
5.6.160.0070.04721.18
5.6.150.0070.04321.16
5.6.140.0170.07021.18
5.6.130.0030.08721.23
5.6.120.0130.07021.11
5.6.110.0100.07321.12
5.6.100.0030.07021.11
5.6.90.0030.05021.12
5.6.80.0000.04320.55
5.6.70.0070.08320.44
5.6.60.0100.06320.66
5.6.50.0070.08320.52
5.6.40.0030.08320.46
5.6.30.0070.08020.46
5.6.20.0100.08020.61
5.6.10.0070.07320.54
5.6.00.0070.04020.41
5.5.380.0070.08720.45
5.5.370.0070.08720.57
5.5.360.0070.08020.45
5.5.350.0170.06020.48
5.5.340.0130.07720.72
5.5.330.0070.08020.98
5.5.320.0100.08021.04
5.5.310.0100.08320.74
5.5.300.0070.05320.99
5.5.290.0130.07720.85
5.5.280.0070.05020.98
5.5.270.0030.04720.88
5.5.260.0030.04320.84
5.5.250.0070.07720.70
5.5.240.0070.04720.40
5.5.230.0070.08020.14
5.5.220.0100.07320.22
5.5.210.0030.07720.39
5.5.200.0130.04020.27
5.5.190.0200.06020.40
5.5.180.0130.06320.16
5.5.160.0100.07320.09
5.5.150.0030.08720.19
5.5.140.0170.07020.19
5.5.130.0070.08020.30
5.5.120.0070.04720.39
5.5.110.0100.04020.32
5.5.100.0030.07020.13
5.5.90.0030.04720.26
5.5.80.0100.07720.27
5.5.70.0170.05320.10
5.5.60.0100.07320.08
5.5.50.0170.06720.09
5.5.40.0170.06720.26
5.5.30.0030.07320.20
5.5.20.0070.05320.04
5.5.10.0000.04720.12
5.5.00.0070.06020.27
5.4.450.0070.05019.54
5.4.440.0070.08319.54
5.4.430.0070.05719.20
5.4.420.0000.07319.51
5.4.410.0070.07719.38
5.4.400.0000.08019.16
5.4.390.0130.07719.16
5.4.380.0100.08019.18
5.4.370.0070.04719.19
5.4.360.0070.07319.10
5.4.350.0070.06719.36
5.4.340.0030.08019.20
5.4.320.0100.07018.88
5.4.310.0070.04719.16
5.4.300.0070.06719.19
5.4.290.0130.05319.11
5.4.280.0030.07318.85
5.4.270.0070.08019.18
5.4.260.0070.04019.01
5.4.250.0100.06719.16
5.4.240.0030.08319.01
5.4.230.0030.08319.09
5.4.220.0030.04718.85
5.4.210.0100.06318.85
5.4.200.0070.05019.18
5.4.190.0070.05319.19
5.4.180.0170.06719.02
5.4.170.0030.08319.20
5.4.160.0000.07318.86
5.4.150.0130.07019.14
5.4.140.0030.03716.41
5.4.130.0070.04716.55
5.4.120.0170.06316.54
5.4.110.0130.06316.51
5.4.100.0100.07716.51
5.4.90.0070.04716.34
5.4.80.0170.06316.34
5.4.70.0070.07316.41
5.4.60.0100.07016.33
5.4.50.0100.04016.36
5.4.40.0030.07016.48
5.4.30.0030.06716.32
5.4.20.0130.06316.32
5.4.10.0030.05316.50
5.4.00.0100.04315.69

preferences:
38.53 ms | 400 KiB | 5 Q