3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* as cuf #0 /documents/projects/github/Blog/Blog/src/test.php(25): bbq() #1 [internal function]: omg() #2 /documents/projects/github/Blog/Blog/src/test.php(6): call_user_func('omg') #3 {main} as func call #0 /documents/projects/github/Blog/Blog/src/test.php(25): bbq() #1 /documents/projects/github/Blog/Blog/src/test.php(15): omg() #2 {main} */ 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.5.30.0080.00917.26
8.5.20.0100.00720.16
8.5.10.0060.01320.09
8.5.00.0130.00820.03
8.4.180.0130.01022.50
8.4.170.0080.01423.90
8.4.160.0140.00720.33
8.4.150.0040.00416.90
8.4.140.0140.00617.73
8.4.130.0090.00918.05
8.4.120.0140.00620.48
8.4.110.0140.00718.95
8.4.100.0120.00917.68
8.4.90.0110.00617.69
8.4.80.0110.00718.23
8.4.70.0140.00618.15
8.4.60.0120.00918.73
8.4.50.0130.00720.45
8.4.40.0100.01017.84
8.4.30.0060.01317.89
8.4.20.0100.01017.61
8.4.10.0000.01217.70
8.3.300.0090.01320.73
8.3.290.0110.00920.58
8.3.280.0100.01120.21
8.3.270.0120.00716.52
8.3.260.0090.01016.55
8.3.250.0140.00519.01
8.3.240.0080.01116.78
8.3.230.0080.01216.63
8.3.220.0090.00616.62
8.3.210.0040.00418.44
8.3.200.0050.00316.84
8.3.190.0100.00917.07
8.3.180.0060.00316.63
8.3.170.0180.00016.88
8.3.160.0110.00719.95
8.3.150.0120.00616.40
8.3.140.0060.00317.10
8.3.130.0000.00818.12
8.3.120.0080.00318.84
8.3.110.0000.00920.94
8.3.100.0000.00818.40
8.3.90.0090.00926.77
8.3.80.0070.00318.30
8.3.70.0140.00716.63
8.3.60.0060.01618.55
8.3.50.0120.01021.15
8.3.40.0070.00718.79
8.3.30.0070.00718.54
8.3.20.0040.00420.21
8.3.10.0050.00321.89
8.3.00.0000.00818.00
8.2.300.0120.00822.18
8.2.290.0100.00520.61
8.2.280.0080.01018.25
8.2.270.0110.00717.26
8.2.260.0070.01118.32
8.2.250.0140.00418.58
8.2.240.0080.00818.93
8.2.230.0050.00522.58
8.2.220.0070.00324.06
8.2.210.0000.01826.77
8.2.200.0060.00316.63
8.2.190.0120.00316.58
8.2.180.0070.00725.92
8.2.170.0130.00719.04
8.2.160.0100.00322.96
8.2.150.0060.00325.66
8.2.140.0090.00924.66
8.2.130.0030.00526.16
8.2.120.0000.00819.95
8.2.110.0060.00322.20
8.2.100.0060.00617.75
8.2.90.0040.00419.05
8.2.80.0030.00517.97
8.2.70.0040.00417.50
8.2.60.0040.00418.04
8.2.50.0030.00618.07
8.2.40.0030.00619.44
8.2.30.0070.00020.63
8.2.20.0040.00417.68
8.2.10.0000.00717.97
8.2.00.0000.00717.98
8.1.340.0130.00821.57
8.1.330.0120.00716.48
8.1.320.0050.00316.22
8.1.310.0090.00918.30
8.1.300.0060.00319.91
8.1.290.0060.00330.84
8.1.280.0100.00725.92
8.1.270.0060.00323.77
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00322.33
8.1.230.0120.00017.42
8.1.220.0040.00417.79
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0050.00318.46
8.1.160.0030.00521.93
8.1.150.0040.00418.85
8.1.140.0050.00317.49
8.1.130.0000.00717.58
8.1.120.0030.00517.50
8.1.110.0000.00917.44
8.1.100.0060.00317.54
8.1.90.0050.00317.47
8.1.80.0040.00417.48
8.1.70.0040.00417.47
8.1.60.0000.00717.63
8.1.50.0050.00317.44
8.1.40.0080.00017.52
8.1.30.0040.00417.59
8.1.20.0040.00417.69
8.1.10.0000.00817.64
8.1.00.0040.00417.45
8.0.300.0020.00518.77
8.0.290.0050.00316.88
8.0.280.0080.00018.48
8.0.270.0070.00017.13
8.0.260.0030.00317.20
8.0.250.0030.00516.92
8.0.240.0060.00316.92
8.0.230.0110.00016.91
8.0.220.0070.00316.94
8.0.210.0040.00416.93
8.0.200.0040.00416.82
8.0.190.0000.00716.85
8.0.180.0040.00416.90
8.0.170.0000.00716.95
8.0.160.0040.00416.84
8.0.150.0040.00417.00
8.0.140.0040.00416.88
8.0.130.0000.00613.32
8.0.120.0040.00416.96
8.0.110.0040.00416.86
8.0.100.0040.00417.02
8.0.90.0040.00416.98
8.0.80.0140.00016.91
8.0.70.0000.00816.85
8.0.60.0040.00416.96
8.0.50.0040.00416.79
8.0.30.0110.00817.13
8.0.20.0050.01317.40
8.0.10.0040.00417.02
8.0.00.0140.00516.62
7.4.330.0000.00515.09
7.4.320.0090.00016.61
7.4.300.0030.00316.59
7.4.290.0000.00816.47
7.4.280.0000.00816.49
7.4.270.0030.00316.66
7.4.260.0000.00716.60
7.4.250.0000.00716.47
7.4.240.0040.00316.56
7.4.230.0030.00316.30
7.4.220.0030.01316.69
7.4.210.0130.00616.61
7.4.200.0050.00316.32
7.4.160.0080.01116.43
7.4.150.0030.01517.40
7.4.140.0070.01617.86
7.4.130.0090.00916.51
7.4.120.0090.01016.60
7.4.110.0110.00516.43
7.4.100.0160.00616.54
7.4.90.0070.01716.41
7.4.80.0110.00619.39
7.4.70.0060.01316.44
7.4.60.0070.01016.52
7.4.50.0040.00416.64
7.4.40.0100.00816.28
7.4.30.0090.00916.52
7.4.00.0040.00814.99
7.3.330.0060.00013.13
7.3.320.0000.00513.32
7.3.310.0070.00016.21
7.3.300.0000.00716.14
7.3.290.0100.00616.27
7.3.280.0100.00716.34
7.3.270.0070.01017.40
7.3.260.0080.01216.34
7.3.250.0110.00916.47
7.3.240.0080.00216.36
7.3.230.0060.01316.48
7.3.210.0090.00916.40
7.3.200.0040.01716.39
7.3.190.0040.01216.42
7.3.180.0060.01116.38
7.3.170.0160.00616.44
7.3.160.0120.00916.47
7.3.10.0100.00716.09
7.3.00.0110.00016.30
7.2.330.0120.00616.63
7.2.320.0140.00316.66
7.2.310.0160.00616.71
7.2.300.0130.00316.47
7.2.290.0110.01216.54
7.2.130.0190.00316.11
7.2.120.0130.00615.97
7.2.110.0200.00316.64
7.2.100.0110.00716.71
7.2.90.0100.01016.43
7.2.80.0160.00316.59
7.2.70.0070.00516.54
7.2.60.0150.00516.56
7.2.50.0130.00516.64
7.2.40.0090.01216.34
7.2.30.0040.01416.55
7.2.20.0170.01016.59
7.2.10.0270.01016.42
7.2.00.0150.01216.88
7.1.250.0120.01115.66
7.1.200.0060.00615.28
7.1.70.0000.00717.01
7.1.60.0090.00317.15
7.1.50.0100.01017.02
7.1.00.0070.07322.37
7.0.200.0080.00316.44
7.0.60.0070.05719.99
7.0.50.0170.07317.98
7.0.40.0070.08020.20
7.0.30.0300.07320.34
7.0.20.0270.07320.15
7.0.10.0100.04320.23
7.0.00.0000.04720.33
5.6.280.0100.06720.91
5.6.210.0000.06320.58
5.6.200.0030.04718.13
5.6.190.0130.04720.55
5.6.180.0270.05020.46
5.6.170.0270.06720.63
5.6.160.0100.06020.57
5.6.150.0130.04318.19
5.6.140.0130.06718.23
5.6.130.0100.07018.17
5.6.120.0100.08021.09
5.6.110.0100.08321.11
5.6.100.0130.08021.16
5.6.90.0070.08321.14
5.6.80.0070.05020.39
5.5.350.0030.06320.42
5.5.340.0100.07018.09
5.5.330.0030.04320.42
5.5.320.2870.03720.51
5.5.310.0300.08020.24
5.5.300.0030.07718.01
5.5.290.0170.03018.04
5.5.280.0030.06020.97
5.5.270.0030.08320.75
5.5.260.0000.04320.89
5.5.250.0070.06320.57
5.5.240.0070.07020.27
5.4.450.0030.05719.18
5.4.440.0000.08019.57
5.4.430.0030.04319.17
5.4.420.0030.04319.19
5.4.410.0030.03719.07
5.4.400.0000.03719.07
5.4.390.0000.04018.99
5.4.380.0000.03718.98
5.4.370.0000.04019.20
5.4.360.0000.04018.94
5.4.350.0030.03318.88
5.4.340.0070.03319.22
5.4.320.0000.04019.15
5.4.310.0000.04018.99
5.4.300.0030.03319.19
5.4.290.0000.05018.85
5.4.280.0070.04319.09
5.4.270.0000.03719.25
5.4.260.0070.03018.94
5.4.250.0000.03718.94
5.4.240.0100.03318.93
5.4.230.0030.03319.08
5.4.220.0000.04319.21
5.4.210.0030.03719.07
5.4.200.0000.04018.98
5.4.190.0000.03719.12
5.4.180.0000.04019.05
5.4.170.0000.03719.13
5.4.160.0000.03719.18
5.4.150.0000.03719.22
5.4.140.0000.03316.44
5.4.130.0000.03716.57
5.4.120.0070.02716.40
5.4.110.0070.03016.24
5.4.100.0030.07016.23
5.4.90.0030.03716.50
5.4.80.0000.07316.48

preferences:
114.54 ms | 1742 KiB | 5 Q