3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { echo "as cuf\n"; call_user_func('omg'); } catch (\Exception $e) { echo $e->getTraceAsString(); } echo "\n\n"; try { omg(); } catch (\Exception $e) { echo "as func call\n"; echo $e->getTraceAsString(); } function omg() { bbq(); } function bbq() { throw new \Exception("testing"); } function getExceptionString(\Exception $ex) { $string = ''; while ($ex) { $string .= "Exception " . get_class($ex) . ': ' . $ex->getMessage()."\n"; foreach ($ex->getTrace() as $tracePart) { $line = false; $string .= var_export($tracePart, true); $string .= "\n"; if (isset($tracePart['file']) ) { $line .= $tracePart['file']." "; } if (isset($tracePart['line']) ) { $line .= $tracePart['line']." "; } if (isset($tracePart["class"])) { $line .= $tracePart["class"]; } if (isset($tracePart["type"])) { $line .= $tracePart["type"]; } if (isset($tracePart["function"])) { $line .= $tracePart["function"]; } if ($line === false) { $string .= "***\n"; } else { $string .= $line."\n"; } } $ex = $ex->getPrevious(); if ($ex) { $string .= "Previous "; } }; return $string; }

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.0160.00618.36
8.3.50.0120.00921.13
8.3.40.0120.00318.87
8.3.30.0150.00018.71
8.3.20.0040.00420.29
8.3.10.0050.00321.90
8.3.00.0050.00318.04
8.2.180.0150.00018.66
8.2.170.0040.01122.96
8.2.160.0040.01120.43
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0080.00026.16
8.2.120.0030.00617.48
8.2.110.0000.00922.08
8.2.100.0090.00317.75
8.2.90.0050.00319.22
8.2.80.0080.00017.97
8.2.70.0060.00317.75
8.2.60.0040.00417.79
8.2.50.0040.00418.07
8.2.40.0040.00419.52
8.2.30.0070.00020.71
8.2.20.0000.00817.77
8.2.10.0000.00718.02
8.2.00.0050.00318.11
8.1.280.0090.00625.92
8.1.270.0050.00323.83
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0030.00622.48
8.1.230.0120.00017.42
8.1.220.0000.00817.78
8.1.210.0050.00318.77
8.1.200.0070.00317.35
8.1.190.0040.00417.25
8.1.180.0000.00918.10
8.1.170.0000.00818.59
8.1.160.0000.00722.00
8.1.150.0000.00718.83
8.1.140.0000.00817.53
8.1.130.0050.00217.61
8.1.120.0000.00717.50
8.1.110.0040.00417.37
8.1.100.0030.00617.45
8.1.90.0040.00417.41
8.1.80.0040.00417.45
8.1.70.0000.00717.52
8.1.60.0000.00717.60
8.1.50.0030.00517.52
8.1.40.0050.00317.59
8.1.30.0030.00517.68
8.1.20.0000.00817.70
8.1.10.0060.00317.50
8.1.00.0050.00317.53
8.0.300.0070.00018.77
8.0.290.0000.00916.75
8.0.280.0030.00318.41
8.0.270.0000.00717.40
8.0.260.0000.00717.35
8.0.250.0040.00417.01
8.0.240.0030.00617.06
8.0.230.0050.00517.04
8.0.220.0080.00016.94
8.0.210.0060.00316.87
8.0.200.0000.00816.95
8.0.190.0060.00316.89
8.0.180.0000.00816.95
8.0.170.0030.00616.95
8.0.160.0040.00316.88
8.0.150.0000.00716.94
8.0.140.0040.00416.94
8.0.130.0000.00613.40
8.0.120.0000.00816.98
8.0.110.0070.00017.03
8.0.100.0040.00316.86
8.0.90.0070.00017.03
8.0.80.0070.00716.91
8.0.70.0040.00416.86
8.0.60.0040.00417.01
8.0.50.0080.00016.85
8.0.30.0090.00817.04
8.0.20.0140.00717.40
8.0.10.0000.00716.96
8.0.00.0080.01316.78
7.4.330.0050.00015.09
7.4.320.0060.00316.59
7.4.300.0000.00616.52
7.4.290.0070.00016.53
7.4.280.0040.00416.52
7.4.270.0030.00316.64
7.4.260.0000.00716.48
7.4.250.0000.00816.60
7.4.240.0020.00516.58
7.4.230.0040.00416.51
7.4.220.0070.01016.73
7.4.210.0130.00316.54
7.4.200.0030.00316.61
7.4.160.0110.00416.61
7.4.150.0140.00317.40
7.4.140.0160.00517.86
7.4.130.0120.00816.46
7.4.120.0100.00616.57
7.4.110.0080.00816.39
7.4.100.0030.01516.54
7.4.90.0120.00616.47
7.4.80.0060.01019.39
7.4.70.0080.01116.42
7.4.60.0030.01216.61
7.4.50.0040.00416.58
7.4.40.0030.01516.41
7.4.30.0130.00616.66
7.4.00.0100.00615.10
7.3.330.0000.00613.17
7.3.320.0050.00013.28
7.3.310.0030.00316.20
7.3.300.0050.00316.30
7.3.290.0080.00716.30
7.3.280.0050.01216.28
7.3.270.0030.01317.40
7.3.260.0060.01216.63
7.3.250.0080.01116.43
7.3.240.0100.01216.44
7.3.230.0090.01316.47
7.3.210.0090.00916.47
7.3.200.0160.00016.34
7.3.190.0100.00716.25
7.3.180.0120.00916.24
7.3.170.0040.01716.48
7.3.160.0090.00916.45
7.2.330.0190.03616.68
7.2.320.0030.01316.70
7.2.310.0070.01116.69
7.2.300.0140.00716.72
7.2.290.0100.00716.75
7.2.110.0370.00316.39
7.2.60.0040.00716.71
7.2.00.0030.01518.85
7.1.200.0130.00015.70
7.1.100.0070.00317.91
7.1.70.0040.00416.81
7.1.60.0060.00919.19
7.1.50.0100.01316.90
7.1.00.0030.07722.44
7.0.200.0040.00416.61
7.0.60.0200.04021.63
7.0.50.0030.04017.89
7.0.40.0100.05319.96
7.0.30.0230.06320.09
7.0.20.0200.04020.18
7.0.10.0100.07020.07
7.0.00.0070.07720.08
5.6.280.0070.07020.80
5.6.210.0030.08320.71
5.6.200.0130.06718.25
5.6.190.0070.06720.52
5.6.180.0170.05320.52
5.6.170.0300.05020.39
5.6.160.0130.07320.54
5.6.150.0100.06318.25
5.6.140.0130.07018.18
5.6.130.0100.08318.21
5.6.120.0030.05720.91
5.6.110.0100.05720.91
5.6.100.0100.07321.00
5.6.90.0000.05321.02
5.6.80.0200.07020.38
5.5.350.0330.07720.48
5.5.340.0000.05017.96
5.5.330.0100.04020.26
5.5.320.0270.07720.29
5.5.310.0130.04320.34
5.5.300.0030.04018.04
5.5.290.0000.04317.98
5.5.280.0170.08020.64
5.5.270.0100.08020.88
5.5.260.0130.05020.78
5.5.250.0070.08720.61
5.5.240.0030.09320.28
5.4.450.0370.06019.39
5.4.440.0330.07319.25
5.4.430.0300.03719.45
5.4.420.0300.03719.57
5.4.410.0270.05319.23
5.4.400.0270.03718.96
5.4.390.0370.07019.04
5.4.380.0300.03319.13
5.4.370.0270.05019.17
5.4.360.0370.07018.96
5.4.350.0430.06018.96
5.4.340.0370.06319.16
5.4.320.0270.07719.25
5.4.310.0270.07019.27
5.4.300.0200.04719.13
5.4.290.0270.04719.13
5.4.280.0200.06718.93
5.4.270.0270.04718.92
5.4.260.0270.04719.22
5.4.250.0270.07319.13
5.4.240.0270.03719.09
5.4.230.0270.03718.95
5.4.220.0230.03718.92
5.4.210.0230.03318.96
5.4.200.0200.04719.11
5.4.190.0200.04318.95
5.4.180.0270.03019.23
5.4.170.0230.03319.14
5.4.160.0230.03719.17
5.4.150.0230.03719.13
5.4.140.0170.04016.43
5.4.130.0200.04016.54
5.4.120.0270.03016.54
5.4.110.0270.03016.27
5.4.100.0230.03016.32
5.4.90.0200.03316.50
5.4.80.0230.03016.29

preferences:
49.14 ms | 401 KiB | 5 Q