3v4l.org

run code in 300+ PHP versions simultaneously
<?php function handleError($errno, $errstr, $errfile, $errline) { var_dump($errno ); var_dump($errstr ); /* if (!($errno & error_reporting())) { return false; } self::$errorStack[] = array($errno, $errstr, $errfile, $errline); $trace = debug_backtrace(false); array_shift($trace); foreach ($trace as $frame) { if ($frame['function'] == '__toString') { return false; } } if ($errno == E_NOTICE || $errno == E_USER_NOTICE || $errno == E_STRICT) { if (PHPUnit_Framework_Error_Notice::$enabled !== true) { return false; } $exception = 'PHPUnit_Framework_Error_Notice'; } elseif ($errno == E_WARNING || $errno == E_USER_WARNING) { if (PHPUnit_Framework_Error_Warning::$enabled !== true) { return false; } $exception = 'PHPUnit_Framework_Error_Warning'; } elseif ($errno == E_DEPRECATED || $errno == E_USER_DEPRECATED) { if (PHPUnit_Framework_Error_Deprecated::$enabled !== true) { return false; } $exception = 'PHPUnit_Framework_Error_Deprecated'; } else { $exception = 'PHPUnit_Framework_Error'; } throw new $exception($errstr, $errno, $errfile, $errline); */ } set_error_handler("handleError", E_ALL); $xml = simplexml_load_string('ololo');

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.0060.00916.88
8.3.50.0120.00621.96
8.3.40.0070.00719.10
8.3.30.0110.00419.21
8.3.20.0000.00820.46
8.3.10.0080.00021.98
8.3.00.0040.00419.81
8.2.180.0140.00318.66
8.2.170.0120.00922.96
8.2.160.0140.00022.14
8.2.150.0060.00324.18
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0050.00321.31
8.2.110.0030.00622.56
8.2.100.0060.00619.66
8.2.90.0040.00419.39
8.2.80.0040.00419.50
8.2.70.0050.00317.75
8.2.60.0080.00018.05
8.2.50.0080.00018.07
8.2.40.0030.00918.32
8.2.30.0040.00418.22
8.2.20.0040.00417.83
8.2.10.0080.00018.11
8.2.00.0030.00517.93
8.1.280.0120.00925.92
8.1.270.0000.00922.25
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00423.96
8.1.230.0040.00819.35
8.1.220.0030.00617.90
8.1.210.0000.00818.77
8.1.200.0000.00917.48
8.1.190.0060.00317.66
8.1.180.0030.01020.46
8.1.170.0070.00318.75
8.1.160.0000.00822.30
8.1.150.0060.00019.03
8.1.140.0070.00017.55
8.1.130.0000.00819.38
8.1.120.0000.00717.66
8.1.110.0030.00617.71
8.1.100.0000.00717.70
8.1.90.0050.00217.61
8.1.80.0070.00017.48
8.1.70.0000.00717.55
8.1.60.0030.00517.89
8.1.50.0080.00017.62
8.1.40.0000.00717.60
8.1.30.0000.00917.95
8.1.20.0040.00417.74
8.1.10.0000.00817.68
8.1.00.0040.00417.55
8.0.300.0040.00418.77
8.0.290.0030.00517.30
8.0.280.0080.00018.66
8.0.270.0030.00317.40
8.0.260.0000.00617.02
8.0.250.0000.00617.20
8.0.240.0070.00017.16
8.0.230.0040.00417.32
8.0.220.0030.00317.13
8.0.210.0070.00017.11
8.0.200.0000.00917.13
8.0.190.0050.00317.11
8.0.180.0000.00716.94
8.0.170.0000.00917.02
8.0.160.0040.00417.20
8.0.150.0060.00317.20
8.0.140.0000.00716.92
8.0.130.0060.00013.63
8.0.120.0000.00717.08
8.0.110.0000.00817.09
8.0.100.0040.00416.96
8.0.90.0020.00517.14
8.0.80.0090.00617.12
8.0.70.0030.00517.02
8.0.60.0080.00017.11
8.0.50.0040.00416.95
8.0.30.0110.01317.13
8.0.20.0170.00317.48
8.0.10.0070.00017.17
8.0.00.0130.01116.88
7.4.330.0060.00015.31
7.4.320.0060.00016.54
7.4.300.0050.00316.76
7.4.290.0000.00716.75
7.4.280.0050.00216.80
7.4.270.0000.00716.86
7.4.260.0030.00716.74
7.4.250.0050.00316.83
7.4.240.0000.00716.75
7.4.230.0000.00716.81
7.4.220.0100.01716.60
7.4.210.0120.00316.75
7.4.200.0040.00416.73
7.4.160.0150.00016.82
7.4.150.0130.00917.40
7.4.140.0100.00817.86
7.4.130.0110.00616.61
7.4.120.0100.00716.63
7.4.110.0040.01416.57
7.4.100.0070.01016.50
7.4.90.0230.00316.61
7.4.80.0200.00319.39
7.4.70.0090.02416.54
7.4.60.0070.01016.75
7.4.50.0000.00516.70
7.4.40.0170.00016.55
7.4.30.0110.00716.62
7.4.00.0060.00314.98
7.3.330.0060.00013.27
7.3.320.0050.00013.20
7.3.310.0030.00316.40
7.3.300.0000.00616.35
7.3.290.0080.00716.43
7.3.280.0120.00816.40
7.3.270.0030.01617.40
7.3.260.0090.00916.65
7.3.250.0090.00716.55
7.3.240.0120.00616.73
7.3.230.0160.00616.39
7.3.210.0050.01116.43
7.3.200.0100.00719.39
7.3.190.0160.03516.64
7.3.180.0090.00616.43
7.3.170.0130.00316.38
7.3.160.0100.00616.48
7.2.330.0140.00316.71
7.2.320.0090.00916.80
7.2.310.0100.01016.73
7.2.300.0100.00716.70
7.2.290.0070.01116.74
7.2.60.0090.00616.71
7.2.00.0030.01019.37
7.1.200.0030.00715.89
7.1.100.0000.00817.82
7.1.70.0040.00417.27
7.1.60.0070.01719.34
7.1.50.0130.01016.99
7.1.00.0070.08722.57
7.0.200.0000.00716.76
7.0.140.0000.03722.25
7.0.60.0000.08719.95
7.0.50.0070.08018.05
7.0.40.0030.09020.21
7.0.30.0300.07720.31
7.0.20.0470.06320.30
7.0.10.0170.07720.31
7.0.00.0000.09320.27
5.6.280.0030.07321.16
5.6.210.0130.07720.87
5.6.200.0070.08318.36
5.6.190.0170.04320.49
5.6.180.0170.06720.81
5.6.170.0370.06720.66
5.6.160.0070.05720.69
5.6.150.0100.07718.43
5.6.140.0030.07318.42
5.6.130.0070.03718.18
5.6.120.0130.07721.04
5.6.110.0000.04721.16
5.6.100.0070.08321.20
5.6.90.0230.06320.99
5.6.80.0000.04720.43
5.5.350.0230.08020.42
5.5.340.0070.08318.06
5.5.330.0130.06720.54
5.5.320.0370.04320.40
5.5.310.0300.03020.49
5.5.300.0030.05318.02
5.5.290.0170.07718.10
5.5.280.0030.05720.95
5.5.270.0130.07720.81
5.5.260.0130.08320.94
5.5.250.0000.05320.83
5.5.240.0100.07020.48
5.4.450.0270.06319.75
5.4.440.0770.05719.62
5.4.430.0030.08319.55
5.4.420.0100.07719.52
5.4.410.0100.05319.30
5.4.400.0070.05319.21
5.4.390.0030.05719.23
5.4.380.0200.07318.83
5.4.370.0330.06718.58
5.4.360.0300.04318.86
5.4.350.0070.05314.09
5.4.340.0130.03013.80
5.4.320.0070.05014.36
5.4.310.0070.05014.34
5.4.300.0130.03014.34
5.4.290.0130.03314.31
5.4.280.0070.03314.29
5.4.270.0100.03314.23
5.4.260.0030.04014.18
5.4.250.0100.03714.29
5.4.240.0130.03314.21
5.4.230.0030.04314.25
5.4.220.0170.03314.41
5.4.210.0030.04014.29
5.4.200.0100.03714.28
5.4.190.0070.04014.29
5.4.180.0070.04014.25
5.4.170.0070.03714.45
5.4.160.0170.04014.28
5.4.150.0100.03314.25
5.4.140.0130.03713.90
5.4.130.0100.03714.04
5.4.120.0100.03714.07
5.4.110.0070.04313.84
5.4.100.0070.04313.88
5.4.90.0130.04013.91
5.4.80.0100.04314.04
5.4.70.0070.04313.79
5.4.60.0030.04713.90
5.4.50.0230.03313.87
5.4.40.0070.04713.86
5.4.30.0070.04013.97
5.4.20.0130.04013.84
5.4.10.0030.05713.95
5.4.00.0100.05313.45
5.3.290.0070.04714.92
5.3.280.0070.04014.85
5.3.270.0130.04714.66
5.3.260.0030.05014.69
5.3.250.0100.04314.78
5.3.240.0100.04714.67
5.3.230.0130.04014.84
5.3.220.0100.04014.74
5.3.210.0100.04314.74
5.3.200.0070.05014.91
5.3.190.0170.03314.64
5.3.180.0100.03714.80
5.3.170.0130.03714.86
5.3.160.0170.03314.81
5.3.150.0070.04314.82
5.3.140.0000.05014.69
5.3.130.0170.03014.71
5.3.120.0130.03714.79
5.3.110.0070.04714.61
5.3.100.0130.03314.38
5.3.90.0070.04014.36
5.3.80.0200.03014.26
5.3.70.0100.04014.15
5.3.60.0070.04014.08
5.3.50.0100.03714.07
5.3.40.0070.04314.30
5.3.30.0170.03314.18
5.3.20.0070.04014.00
5.3.10.0070.03713.88
5.3.00.0100.03713.87
5.2.170.0070.04311.21
5.2.160.0100.03011.39
5.2.150.0070.03711.38
5.2.140.0000.03711.26
5.2.130.0070.03711.41
5.2.120.0030.03311.46
5.2.110.0070.03311.23
5.2.100.0130.02711.28
5.2.90.0070.03311.36
5.2.80.0070.03011.16
5.2.70.0070.03311.16
5.2.60.0000.03711.14
5.2.50.0100.03311.21
5.2.40.0070.03011.10
5.2.30.0070.03311.23
5.2.20.0100.03710.97
5.2.10.0070.03311.20
5.2.00.0070.03311.07
5.1.60.0170.02010.25
5.1.50.0170.01710.12
5.1.40.0170.02010.12
5.1.30.0030.03010.40
5.1.20.0030.03010.48
5.1.10.0100.02310.13
5.1.00.0070.02310.39
5.0.50.0070.0208.81
5.0.40.0100.0178.52
5.0.30.0130.0238.49
5.0.20.0030.0238.32
5.0.10.0070.0178.35
5.0.00.0030.0308.50
4.4.90.0030.0175.87
4.4.80.0030.0175.89
4.4.70.0000.0205.80
4.4.60.0000.0175.80
4.4.50.0000.0175.87
4.4.40.0030.0235.91
4.4.30.0000.0205.83
4.4.20.0000.0205.88
4.4.10.0030.0205.86
4.4.00.0130.0205.84
4.3.110.0030.0175.80
4.3.100.0000.0205.83
4.3.90.0070.0135.74
4.3.80.0030.0305.76
4.3.70.0000.0205.81
4.3.60.0030.0175.81
4.3.50.0030.0175.73
4.3.40.0030.0275.78
4.3.30.0000.0204.48
4.3.20.0000.0174.46
4.3.10.0000.0204.53
4.3.00.0100.0207.32

preferences:
46.64 ms | 401 KiB | 5 Q