3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function __call($method, $args) { try { foreach (array('a', 'b', 'c') as $elt) { try { if (true) { throw new Exception('This must be invisible'); } break; } catch (Exception $e) { die('This must be visible'); } } } catch (Exception $e) { die('Excepted ?'); } } } class B extends A {} class C extends B {} class D extends C {} $d = new D(); $d->JeLanceUneMethodeMagique('toto');

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.70.0070.00716.58
8.3.60.0100.00316.63
8.3.50.0140.00922.99
8.3.40.0040.01119.02
8.3.30.0100.00719.23
8.3.20.0070.00020.33
8.3.10.0080.00023.67
8.3.00.0000.00819.38
8.2.180.0040.01218.41
8.2.170.0090.00922.96
8.2.160.0160.00320.39
8.2.150.0110.00424.18
8.2.140.0000.00724.66
8.2.130.0100.00326.16
8.2.120.0030.00521.02
8.2.110.0000.00922.07
8.2.100.0090.00321.11
8.2.90.0040.00418.98
8.2.80.0000.00917.97
8.2.70.0050.00517.50
8.2.60.0000.00917.91
8.2.50.0050.00518.07
8.2.40.0000.00718.19
8.2.30.0060.00317.93
8.2.20.0040.00417.79
8.2.10.0070.00018.04
8.2.00.0000.00717.80
8.1.280.0110.00425.92
8.1.270.0080.00023.80
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0060.00323.79
8.1.230.0080.00419.23
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0040.00418.47
8.1.160.0040.00422.01
8.1.150.0040.00418.88
8.1.140.0070.00017.45
8.1.130.0000.00717.84
8.1.120.0070.00017.36
8.1.110.0070.00017.43
8.1.100.0030.00617.35
8.1.90.0050.00217.52
8.1.80.0000.00717.36
8.1.70.0070.00017.34
8.1.60.0000.00917.63
8.1.50.0000.00817.41
8.1.40.0080.00017.54
8.1.30.0050.00317.57
8.1.20.0040.00417.55
8.1.10.0070.00017.60
8.1.00.0000.01017.39
8.0.300.0040.00418.77
8.0.290.0060.00316.63
8.0.280.0070.00018.34
8.0.270.0030.00317.12
8.0.260.0000.00717.19
8.0.250.0070.00016.85
8.0.240.0000.00616.84
8.0.230.0030.00316.91
8.0.220.0030.00316.81
8.0.210.0040.00316.78
8.0.200.0000.00616.93
8.0.190.0070.00016.98
8.0.180.0060.00316.81
8.0.170.0030.00616.96
8.0.160.0000.00716.96
8.0.150.0050.00316.87
8.0.140.0000.00716.95
8.0.130.0050.00013.45
8.0.120.0040.00416.80
8.0.110.0000.00816.89
8.0.100.0000.00717.02
8.0.90.0000.00716.98
8.0.80.0090.00616.96
8.0.70.0040.00417.01
8.0.60.0030.00516.90
8.0.50.0070.00016.84
8.0.30.0030.01617.00
8.0.20.0140.00517.40
8.0.10.0040.00417.17
8.0.00.0140.00416.59
7.4.330.0020.00215.05
7.4.320.0060.00016.63
7.4.300.0030.00316.36
7.4.290.0030.00616.59
7.4.280.0000.00916.59
7.4.270.0050.00216.41
7.4.260.0030.00316.52
7.4.250.0000.00716.53
7.4.240.0000.00716.54
7.4.230.0040.00416.50
7.4.220.0150.00316.36
7.4.210.0040.01116.64
7.4.200.0050.00216.62
7.4.160.0030.01416.55
7.4.150.0090.00917.40
7.4.140.0160.00517.86
7.4.130.0080.00916.55
7.4.120.0100.00716.64
7.4.110.0070.01416.60
7.4.100.0110.00616.66
7.4.90.0090.00616.61
7.4.80.0090.00919.39
7.4.70.0040.01216.60
7.4.60.0140.00816.62
7.4.50.0040.00416.27
7.4.40.0130.00316.71
7.4.30.0040.01116.65
7.4.00.0040.01115.21
7.3.330.0000.00513.43
7.3.320.0030.00313.21
7.3.310.0040.00416.32
7.3.300.0000.00716.40
7.3.290.0060.00916.44
7.3.280.0080.01116.38
7.3.270.0030.01317.40
7.3.260.0090.00916.49
7.3.250.0110.00816.44
7.3.240.0060.00916.27
7.3.230.0060.01116.42
7.3.210.0000.01716.37
7.3.200.0090.00919.39
7.3.190.0100.01316.39
7.3.180.0060.00916.60
7.3.170.0060.00916.53
7.3.160.0090.00616.46
7.3.10.0030.01016.41
7.3.00.0070.00716.61
7.2.330.0090.00916.81
7.2.320.0030.01416.73
7.2.310.0120.00916.49
7.2.300.0180.00616.70
7.2.290.0040.01316.52
7.2.130.0110.00416.84
7.2.120.0080.00416.87
7.2.110.0070.00716.93
7.2.100.0000.01316.77
7.2.90.0070.00716.99
7.2.80.0040.01116.68
7.2.70.0060.00616.88
7.2.60.0070.00716.97
7.2.50.0040.01117.03
7.2.40.0030.00917.07
7.2.30.0060.00617.00
7.2.20.0000.00916.74
7.2.10.0030.01016.97
7.2.00.0040.01216.74
7.1.250.0080.00415.54
7.1.200.0060.00615.91
7.1.70.0000.01016.89
7.1.60.0040.01119.40
7.1.50.0230.00916.72
7.1.00.0030.07722.36
7.0.200.0080.00316.59
7.0.140.0070.07021.97
7.0.60.0070.08719.78
7.0.50.0130.07317.87
7.0.40.0030.04720.11
7.0.30.0300.06720.24
7.0.20.0300.05720.23
7.0.10.0100.08320.08
7.0.00.0100.03720.23
5.6.280.0000.07721.03
5.6.210.0170.08020.63
5.6.200.0000.08318.20
5.6.190.0100.05320.34
5.6.180.0270.08020.61
5.6.170.0200.03720.54
5.6.160.0100.04320.50
5.6.150.0030.08318.23
5.6.140.0100.03318.15
5.6.130.0070.04318.16
5.6.120.0030.05321.03
5.6.110.0100.06720.99
5.6.100.0100.08021.19
5.6.90.0070.08720.98
5.6.80.0130.07320.38
5.5.350.0000.07720.50
5.5.340.0170.07317.98
5.5.330.0070.03720.40
5.5.320.3570.04720.24
5.5.310.0370.06720.30
5.5.300.0030.04017.99
5.5.290.0100.05017.93
5.5.280.0170.03320.70
5.5.270.0070.08720.79
5.5.260.0100.08720.65
5.5.250.0130.06320.67
5.5.240.0030.07020.16
5.4.450.1900.05019.64
5.4.440.1870.04719.20
5.4.430.1730.04319.40
5.4.420.1830.03719.48
5.4.410.1730.05019.08
5.4.400.2000.03718.95
5.4.390.0330.06319.23
5.4.380.0070.03319.08
5.4.370.0100.07719.22
5.4.360.1500.04019.31
5.4.350.1800.05018.95
5.4.340.1570.04319.13
5.4.320.1900.04019.24
5.4.310.1630.04019.25
5.4.300.1930.03719.13
5.4.290.1870.04019.06
5.4.280.1930.04319.22
5.4.270.1630.03318.87
5.4.260.1870.04718.84
5.4.250.1830.04719.08
5.4.240.1870.04719.08
5.4.230.1700.04019.22
5.4.220.1730.03719.23
5.4.210.1600.03719.10
5.4.200.1770.03018.83
5.4.190.1900.05019.07
5.4.180.1900.03719.07
5.4.170.1700.03018.94
5.4.160.1700.04019.04
5.4.150.1670.03719.19
5.4.140.1870.04316.57
5.4.130.1830.04716.34
5.4.120.1670.03716.44
5.4.110.1970.04316.52
5.4.100.2000.03716.56
5.4.90.1300.03716.42
5.4.80.0030.03716.44
5.4.70.0030.03316.59
5.4.60.0000.04016.43
5.4.50.1300.03716.54
5.4.40.1800.03716.34
5.4.30.1930.03316.34
5.4.20.1700.03016.32
5.4.10.1700.03016.42
5.4.00.1970.03715.97
5.3.290.1830.02314.59
5.3.280.1770.03314.62
5.3.270.1800.04314.62
5.3.260.1900.04314.61
5.3.250.1630.04314.66
5.3.240.1670.04014.76
5.3.230.1730.04314.51
5.3.220.1600.04314.69
5.3.210.1700.04314.50
5.3.200.1700.04014.64
5.3.190.1970.04714.69
5.3.180.2270.03714.49
5.3.170.1630.04014.66
5.3.160.0000.04014.48
5.3.150.0030.03714.64
5.3.140.0070.03314.68
5.3.130.0800.03714.55
5.3.120.2030.04314.53
5.3.110.1830.04714.45
5.3.100.1800.03714.09
5.3.90.1970.04014.05
5.3.80.1870.04714.09
5.3.70.1830.04314.11
5.3.60.1730.03313.91
5.3.50.2030.03713.86
5.3.40.1600.04014.07
5.3.30.1930.04313.92
5.3.20.0330.04013.71
5.3.10.0000.06013.74
5.3.00.0330.04013.72
5.2.170.1230.02311.16
5.2.160.1230.02711.20
5.2.150.1070.02711.22
5.2.140.1100.03311.07
5.2.130.1330.03011.03
5.2.120.1330.02711.26
5.2.110.1170.02711.25
5.2.100.1330.03011.12
5.2.90.1330.03011.03
5.2.80.1000.03011.05
5.2.70.0030.03711.05
5.2.60.0070.02711.13
5.2.50.0000.03010.93
5.2.40.0030.02711.22
5.2.30.0730.02310.88
5.2.20.1100.03011.19
5.2.10.1170.02011.09
5.2.00.0970.03010.77
5.1.60.0030.0209.91
5.1.50.0030.02310.08
5.1.40.0000.0339.88
5.1.30.0170.02710.57
5.1.20.1370.02310.41
5.1.10.0900.02310.15
5.1.00.0970.03010.13
5.0.50.0030.0238.45
5.0.40.0000.0208.42
5.0.30.0000.0308.13
5.0.20.0030.0278.21
5.0.10.0000.0238.27
5.0.00.0000.0308.09
4.4.90.0000.0177.87
4.4.80.0130.0177.87
4.4.70.0330.0177.87
4.4.60.0530.0137.87
4.4.50.0570.0207.87
4.4.40.0530.0277.87
4.4.30.0400.0177.87
4.4.20.0630.0177.87
4.4.10.0400.0177.87
4.4.00.0500.0277.87
4.3.110.0530.0177.87
4.3.100.0570.0137.87
4.3.90.0430.0137.87
4.3.80.0430.0277.87
4.3.70.0500.0177.87
4.3.60.0600.0107.87
4.3.50.0370.0207.87
4.3.40.0500.0207.87
4.3.30.0330.0177.87
4.3.20.0330.0307.87
4.3.10.0400.0277.87
4.3.00.0300.0237.87

preferences:
40.19 ms | 401 KiB | 5 Q