3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('error_reporting',PHP_INT_MAX-1); $xml=<<<EOF <?xml version="1.0"?> <test/> EOF; $xsd=<<<EOF <?xml version="1.0"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:include schemaLocation="nonexistent.xsd"/> <xs:element name="test"/> </xs:schema> EOF; libxml_set_external_entity_loader(function($p,$s,$c) { var_dump($p,$s,$c); die(); }); $dom=new DOMDocument($xml); var_dump($dom->schemaValidateSource($xsd));

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.4.130.0070.00319.19
8.4.120.0110.00920.86
8.4.110.0300.00719.38
8.4.100.0280.00918.12
8.4.90.0230.00818.94
8.4.80.0170.00718.05
8.4.70.0250.00718.10
8.4.60.0220.00618.33
8.4.50.0170.00818.06
8.4.40.0180.00417.92
8.4.30.0180.00518.38
8.4.20.0270.00518.25
8.4.10.0230.00817.80
8.3.260.0120.00717.32
8.3.250.0060.00219.14
8.3.240.0110.00617.36
8.3.230.0180.00716.93
8.3.220.0180.00417.94
8.3.210.0140.00417.06
8.3.200.0150.00417.12
8.3.190.0150.00517.04
8.3.180.0250.00616.92
8.3.170.0250.00617.18
8.3.160.0280.00517.07
8.3.150.0280.00617.59
8.3.140.0250.00517.63
8.3.130.0220.00617.51
8.3.120.0230.00517.70
8.3.110.0260.00718.05
8.3.100.0280.00817.66
8.3.90.0300.00419.54
8.3.80.0270.00817.49
8.3.70.0260.00616.94
8.3.60.0290.00617.46
8.3.50.0220.00517.46
8.3.40.0250.00618.40
8.3.30.0250.00518.36
8.3.20.0210.00618.41
8.3.10.0210.00519.56
8.3.00.0140.00519.30
8.2.290.0170.00817.19
8.2.280.0180.00617.39
8.2.270.0150.00616.99
8.2.260.0150.00317.19
8.2.250.0180.00617.13
8.2.240.0200.00517.67
8.2.230.0180.00518.25
8.2.220.0210.00618.71
8.2.210.0210.00619.40
8.2.200.0170.00617.45
8.2.190.0200.00717.52
8.2.180.0200.00717.08
8.2.170.0230.00619.27
8.2.160.0270.00818.96
8.2.150.0240.00719.52
8.2.140.0250.00619.64
8.2.130.0200.00320.01
8.2.120.0180.00518.63
8.2.110.0210.00419.15
8.2.100.0220.00518.07
8.2.90.0180.00619.15
8.2.80.0210.00418.73
8.2.70.0180.00617.88
8.2.60.0180.00718.02
8.2.50.0180.00717.99
8.2.40.0190.00418.61
8.2.30.0170.00618.67
8.2.20.0200.00518.12
8.2.10.0230.00718.14
8.2.00.0190.00718.88
8.1.330.0150.00718.53
8.1.320.0160.00616.70
8.1.310.0160.00716.85
8.1.300.0180.00417.20
8.1.290.0170.00617.10
8.1.280.0200.00518.96
8.1.270.0220.00619.41
8.1.260.0180.00619.83
8.1.250.0200.00420.38
8.1.240.0140.00518.65
8.1.230.0170.00719.54
8.1.220.0180.00617.89
8.1.210.0140.00518.05
8.1.200.0180.00417.65
8.1.190.0170.00617.54
8.1.180.0190.00417.75
8.1.170.0170.00518.00
8.1.160.0190.00418.18
8.1.150.0160.00618.09
8.1.140.0160.00617.93
8.1.130.0180.00518.20
8.1.120.0190.00417.78
8.1.110.0170.00617.69
8.1.100.0180.00517.76
8.1.90.0160.00717.70
8.1.80.0140.00617.70
8.1.70.0170.00617.63
8.1.60.0140.00417.93
8.1.50.0130.00517.80
8.1.40.0140.00417.75
8.1.30.0110.00717.99
8.1.20.0140.00418.04
8.1.10.0140.00418.03
8.1.00.0120.00517.70
8.0.300.0120.00517.58
8.0.290.0110.00617.10
8.0.280.0110.00517.61
8.0.270.0110.00617.23
8.0.260.0140.00217.94
8.0.250.0140.00417.50
8.0.240.0130.00517.21
8.0.230.0150.00417.18
8.0.220.0170.00417.06
8.0.210.0160.00517.10
8.0.200.0190.00417.21
8.0.190.0140.00417.72
8.0.180.0180.00517.22
8.0.170.0140.00417.26
8.0.160.0140.00617.29
8.0.150.0180.00417.18
8.0.140.0170.00717.17
8.0.130.0190.00416.19
8.0.120.0160.00717.13
8.0.110.0170.00417.14
8.0.100.0150.00317.02
8.0.90.0150.00417.12
8.0.80.0200.00317.21
8.0.70.0150.00617.11
8.0.60.0190.00717.11
8.0.50.0180.00317.09
8.0.30.0140.00817.35
8.0.20.0170.00817.31
8.0.10.0200.00517.24
8.0.00.0170.00817.36
7.4.330.0160.00416.88
7.4.320.0140.00316.77
7.4.300.0140.00616.86
7.4.290.0180.00316.77
7.4.280.0160.00617.09
7.4.270.0160.00516.68
7.4.260.0160.00516.83
7.4.250.0160.00516.78
7.4.240.0160.00516.88
7.4.230.0140.00516.79
7.4.220.0130.00516.80
7.4.210.0150.00716.86
7.4.200.0150.00516.74
7.4.190.0200.00617.41
7.4.180.0220.00416.70
7.4.160.0180.00516.87
7.4.150.0190.00516.63
7.4.140.0130.00617.40
7.4.130.0140.00616.78
7.4.120.0120.00816.84
7.4.110.0160.00516.68
7.4.100.0150.00716.79
7.4.90.0190.00617.11
7.4.80.0200.00717.64
7.4.70.0180.00616.79
7.4.60.0170.00717.13
7.4.50.0180.00716.65
7.4.40.0220.00516.58
7.4.30.0210.00416.54
7.4.20.0230.00416.58
7.4.10.0200.00616.47
7.4.00.0150.00716.02
7.3.330.0150.00415.76
7.3.320.0110.00615.81
7.3.310.0150.00616.56
7.3.300.0160.00516.65
7.3.290.0140.00516.62
7.3.280.0170.00516.71
7.3.270.0200.00517.06
7.3.260.0130.00916.98
7.3.250.0160.00517.05
7.3.240.0130.00716.71
7.3.230.0140.00616.63
7.3.220.0230.00516.56
7.3.210.0170.00516.60
7.3.200.0140.00516.63
7.3.190.0160.00317.00
7.3.180.0150.00516.91
7.3.170.0130.00616.98
7.3.160.0140.00516.47
7.3.150.0150.00516.47
7.3.140.0160.00416.35
7.3.130.0170.00416.40
7.3.120.0130.00516.02
7.3.110.0140.00416.17
7.3.100.0130.00615.95
7.3.90.0110.00616.22
7.3.80.0100.00716.06
7.3.70.0110.00416.16
7.3.60.0130.00516.63
7.3.50.0100.00716.10
7.3.40.0140.00316.59
7.3.30.0130.00516.27
7.3.20.0130.00418.02
7.3.10.0140.00517.62
7.3.00.0120.00717.59
7.2.340.0150.00416.44
7.2.330.0150.00516.71
7.2.320.0150.00516.60
7.2.310.0130.00616.57
7.2.300.0140.00516.70
7.2.290.0130.00516.62
7.2.280.0150.00416.63
7.2.270.0150.00416.64
7.2.260.0150.00416.67
7.2.250.0130.00716.55
7.2.240.0120.00716.34
7.2.230.0120.00416.71
7.2.220.0130.00416.28
7.2.210.0140.00516.16
7.2.200.0110.00616.46
7.2.190.0130.00616.24
7.2.180.0160.00516.28
7.2.170.0140.00316.29
7.2.160.0130.00516.23
7.2.150.0130.00518.14
7.2.140.0110.00718.20
7.2.130.0150.00418.02
7.2.120.0120.00617.95
7.2.110.0140.00417.97
7.2.100.0120.00617.80
7.2.90.0200.00816.99
7.2.80.0210.00717.03
7.2.70.0270.00717.19
7.2.60.0250.00617.24
7.2.50.0240.00817.32
7.2.40.0280.00517.25
7.2.30.0270.00617.23
7.2.20.0220.00717.24
7.2.10.0260.00817.14
7.2.00.0210.00817.18
7.1.330.0110.00717.10
7.1.320.0120.00517.04
7.1.310.0140.00516.99
7.1.300.0130.00617.18
7.1.290.0130.00417.04
7.1.280.0120.00417.16
7.1.270.0110.00517.22
7.1.260.0120.00617.07
7.1.250.0110.00716.86
7.1.240.0110.00717.04
7.1.230.0130.00417.09
7.1.220.0120.00417.00
7.1.210.0240.00515.96
7.1.200.0220.00815.93
7.1.190.0240.00716.09
7.1.180.0220.00516.04
7.1.170.0250.00616.00
7.1.160.0250.00316.05
7.1.150.0310.00616.07
7.1.140.0230.00716.10
7.1.130.0350.00715.96
7.1.120.0220.00516.01
7.1.110.0240.00615.99
7.1.100.0240.00416.07
7.1.90.0260.00716.11
7.1.80.0250.00616.16
7.1.70.0320.00416.02
7.1.60.0300.00923.66
7.1.50.0320.00823.60
7.1.40.0250.00823.66
7.1.30.0270.00723.70
7.1.20.0290.00523.66
7.1.10.0230.00616.06
7.1.00.0250.00515.98
7.0.330.0120.00516.77
7.0.320.0110.00716.74
7.0.310.0260.00515.74
7.0.300.0320.00515.76
7.0.290.0200.00516.04
7.0.280.0270.00615.78
7.0.270.0190.00715.95
7.0.260.0180.00516.10
7.0.250.0150.00916.12
7.0.240.0200.00416.09
7.0.230.0200.00816.17
7.0.220.0180.00616.19
7.0.210.0230.00616.16
7.0.200.0210.00516.13
7.0.190.0180.00616.08
7.0.180.0180.00416.18
7.0.170.0160.00716.11
7.0.160.0170.00616.14
7.0.150.0150.00715.95
7.0.140.0230.00516.17
7.0.130.0190.00716.23
7.0.120.0210.00716.05
7.0.110.0160.00416.11
7.0.100.0160.00616.12
7.0.90.0150.00716.18
7.0.80.0170.00616.09
7.0.70.0230.00516.11
7.0.60.0180.00516.06
7.0.50.0200.00616.06
7.0.40.0150.00715.81
7.0.30.0160.00715.80
7.0.20.0140.00615.65
7.0.10.0180.00715.72
7.0.00.0170.00415.78
5.6.400.0130.00415.72
5.6.390.0120.00515.71
5.6.380.0120.00415.54
5.6.370.0110.00615.42
5.6.360.0110.00715.54
5.6.350.0130.00515.49
5.6.340.0110.00615.58
5.6.330.0130.00615.49
5.6.320.0130.00615.58
5.6.310.0120.00515.55
5.6.300.0120.00515.21
5.6.290.0120.00515.31
5.6.280.0110.00715.42
5.6.270.0120.00715.42
5.6.260.0130.00515.36
5.6.250.0110.00715.31
5.6.240.0150.00415.37
5.6.230.0120.00415.40
5.6.220.0120.00715.40
5.6.210.0110.00815.34
5.6.200.0130.00415.42
5.6.190.0100.00815.43
5.6.180.0120.00615.37
5.6.170.0130.00415.37
5.6.160.0090.00815.41
5.6.150.0130.00615.42
5.6.140.0140.00515.38
5.6.130.0150.00415.49
5.6.120.0140.00415.29
5.6.110.0100.00715.46
5.6.100.0110.00515.46
5.6.90.0110.00615.34
5.6.80.0110.00515.38
5.6.70.0100.00815.33
5.6.60.0120.00615.33
5.6.50.0130.00515.39
5.6.40.0130.00515.36
5.6.30.0100.00715.41
5.6.20.0120.00515.39
5.6.10.0120.00515.26
5.6.00.0120.00515.35

preferences:
29.48 ms | 403 KiB | 5 Q