3v4l.org

run code in 300+ PHP versions simultaneously
<?php function myErrorHandler($errno) { var_dump($errno); if ( E_RECOVERABLE_ERROR===$errno ) { echo "'catched' catchable fatal error\n"; return true; } return false; } set_exception_handler('myErrorHandler'); class ClassA { public function method_a (ClassB $b) {} } class ClassWrong{} $a = new ClassA; $a->method_a(new ClassWrong); echo 'done.';

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.00718.31
8.3.60.0150.00618.64
8.3.50.0090.01121.00
8.3.40.0070.00718.72
8.3.30.0070.00718.84
8.3.20.0040.00420.16
8.3.10.0070.00021.77
8.3.00.0040.00418.05
8.2.190.0140.00716.75
8.2.180.0030.01218.20
8.2.170.0140.00722.96
8.2.160.0070.00720.38
8.2.150.0000.00824.18
8.2.140.0130.00324.66
8.2.130.0050.00326.16
8.2.120.0030.00617.63
8.2.110.0090.00021.00
8.2.100.0040.00817.75
8.2.90.0040.00419.08
8.2.80.0050.00317.97
8.2.70.0030.00517.50
8.2.60.0040.00417.91
8.2.50.0040.00418.07
8.2.40.0070.00419.38
8.2.30.0070.00020.65
8.2.20.0000.00817.68
8.2.10.0040.00417.99
8.2.00.0020.00517.99
8.1.280.0110.00425.92
8.1.270.0090.00622.15
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0060.00321.30
8.1.230.0080.00317.66
8.1.220.0080.00017.74
8.1.210.0030.00618.77
8.1.200.0000.01017.35
8.1.190.0060.00317.22
8.1.180.0050.00218.10
8.1.170.0080.00018.51
8.1.160.0000.00721.95
8.1.150.0040.00418.87
8.1.140.0040.00417.37
8.1.130.0030.00317.63
8.1.120.0040.00417.30
8.1.110.0030.00517.32
8.1.100.0070.00017.39
8.1.90.0040.00417.29
8.1.80.0000.00717.37
8.1.70.0000.00717.39
8.1.60.0000.00817.55
8.1.50.0000.00817.52
8.1.40.0060.00317.39
8.1.30.0060.00317.55
8.1.20.0040.00417.55
8.1.10.0000.00717.59
8.1.00.0040.00417.54
8.0.300.0040.00418.77
8.0.290.0070.00016.63
8.0.280.0030.00318.25
8.0.270.0000.00717.18
8.0.260.0030.00317.20
8.0.250.0040.00416.87
8.0.240.0070.00016.82
8.0.230.0030.00716.92
8.0.220.0080.00016.89
8.0.210.0040.00416.92
8.0.200.0070.00016.98
8.0.190.0030.00716.96
8.0.180.0040.00416.74
8.0.170.0050.00316.78
8.0.160.0040.00316.98
8.0.150.0050.00316.85
8.0.140.0040.00416.84
8.0.130.0030.00313.29
8.0.120.0040.00416.89
8.0.110.0040.00416.79
8.0.100.0070.00016.99
8.0.90.0050.00216.86
8.0.80.0040.01116.89
8.0.70.0040.00416.74
8.0.60.0040.00416.90
8.0.50.0000.00716.86
8.0.30.0130.00617.08
8.0.20.0120.00817.40
8.0.10.0070.00017.07
8.0.00.0080.01016.83
7.4.330.0050.00015.08
7.4.320.0040.00416.55
7.4.300.0030.00316.49
7.4.290.0000.00816.34
7.4.280.0080.00316.60
7.4.270.0030.00316.63
7.4.260.0030.00316.61
7.4.250.0070.00016.32
7.4.240.0000.00716.53
7.4.230.0000.00816.47
7.4.220.0100.01016.66
7.4.210.0060.00916.42
7.4.200.0000.00716.65
7.4.160.0060.00816.79
7.4.150.0120.00817.40
7.4.140.0090.01117.86
7.4.130.0060.01616.50
7.4.120.0110.01016.52
7.4.110.0100.01316.52
7.4.100.0140.00316.46
7.4.90.0120.00616.43
7.4.80.0140.00319.39
7.4.70.0090.00916.73
7.4.60.0000.01716.78
7.4.50.0050.00316.57
7.4.40.0090.00916.78
7.4.30.0100.01316.54
7.4.00.0090.00615.21
7.3.330.0030.00313.51
7.3.320.0030.00313.30
7.3.310.0000.00716.52
7.3.300.0040.00416.43
7.3.290.0050.01016.36
7.3.280.0080.01016.45
7.3.270.0030.01417.40
7.3.260.0150.00416.41
7.3.250.0100.01016.43
7.3.240.0060.01116.39
7.3.230.0090.00916.39
7.3.210.0110.00616.49
7.3.200.0160.00016.73
7.3.190.0130.00416.36
7.3.180.0100.00616.36
7.3.170.0090.01316.27
7.3.160.0060.01216.58
7.3.120.0090.00614.85
7.3.110.0060.00914.71
7.3.100.0120.00614.68
7.3.90.0030.01014.82
7.3.80.0030.00715.16
7.3.70.0130.00314.84
7.3.60.0000.01414.95
7.3.50.0060.00614.80
7.3.40.0120.00314.95
7.3.30.0080.00614.92
7.3.20.0100.00716.71
7.3.10.0120.00016.67
7.3.00.0030.00916.72
7.2.330.0140.00616.50
7.2.320.0080.01616.38
7.2.310.0030.01416.76
7.2.300.0080.00816.74
7.2.290.0090.00916.70
7.2.240.0000.01114.89
7.2.230.0040.00815.11
7.2.220.0030.01015.05
7.2.210.0030.01315.15
7.2.200.0070.00714.96
7.2.190.0070.01014.96
7.2.180.0030.01214.65
7.2.170.0030.01314.76
7.2.160.0060.01015.11
7.2.150.0060.01016.77
7.2.140.0000.01416.98
7.2.130.0090.00617.01
7.2.120.0060.01016.93
7.2.110.0040.01116.86
7.2.100.0030.01416.78
7.2.90.0080.00616.96
7.2.80.0130.00316.92
7.2.70.0100.00717.04
7.2.60.0030.01117.01
7.2.50.0070.01016.95
7.2.40.0030.01617.05
7.2.30.0040.01216.88
7.2.20.0060.00717.08
7.2.10.0040.01416.93
7.2.00.0070.00818.17
7.1.330.0070.00715.89
7.1.320.0070.01115.54
7.1.310.0070.00415.63
7.1.300.0070.00315.68
7.1.290.0030.00715.83
7.1.280.0060.00615.49
7.1.270.0000.01215.70
7.1.260.0070.01115.86
7.1.250.0030.01515.65
7.1.200.0060.00915.71
7.1.70.0000.00717.09
7.1.60.0140.00319.20
7.1.50.0150.00834.85
7.1.00.0070.07322.30
7.0.200.0070.00716.74
7.0.60.0130.07719.78
7.0.50.0030.06017.88
7.0.40.0000.06720.26
7.0.30.0230.04020.25
7.0.20.0300.07720.21
7.0.10.0100.08320.06
7.0.00.0070.04020.16
5.6.280.0070.06721.13
5.6.210.0030.04020.73
5.6.200.0000.09318.29
5.6.190.0030.05020.55
5.6.180.0200.04020.39
5.6.170.0230.08320.45
5.6.160.0030.08720.44
5.6.150.0130.07018.14
5.6.140.0070.05318.19
5.6.130.0070.08718.16
5.6.120.0070.05321.02
5.6.110.0070.07321.02
5.6.100.0170.07721.02
5.6.90.0030.07021.11
5.6.80.0030.06720.39
5.5.350.0070.07720.48
5.5.340.0000.05018.05
5.5.330.0100.08020.18
5.5.320.3870.04020.29
5.5.310.0270.05720.37
5.5.300.0000.04317.97
5.5.290.0000.06017.92
5.5.280.0030.07720.89
5.5.270.0100.08020.76
5.5.260.0030.08720.98
5.5.250.0100.07720.55
5.5.240.0000.08020.17
5.4.450.0670.06319.46
5.4.440.0600.06719.32
5.4.430.0230.05019.61
5.4.420.0230.06019.47
5.4.410.0230.04719.34
5.4.400.0370.05019.23
5.4.390.0230.06719.30
5.4.380.0200.06319.15
5.4.370.0300.06719.23
5.4.360.0330.07318.84
5.4.350.0170.06718.98
5.4.340.0270.06319.15
5.4.320.0370.07319.28
5.4.310.0230.07019.26
5.4.300.0330.06719.15
5.4.290.0230.05719.15
5.4.280.0330.06719.26
5.4.270.0300.06719.28
5.4.260.0400.06319.15
5.4.250.0330.07019.00
5.4.240.0370.06319.14
5.4.230.0130.07018.86
5.4.220.0200.06318.86
5.4.210.0270.05019.12
5.4.200.0370.05019.12
5.4.190.0270.06019.13
5.4.180.0200.06319.25
5.4.170.0230.06719.36
5.4.160.0170.05719.18
5.4.150.0230.05318.96
5.4.140.0330.06716.55
5.4.130.0270.04716.53
5.4.120.0130.05716.45
5.4.110.0230.07016.47
5.4.100.0370.04316.57
5.4.90.0200.05316.48
5.4.80.0270.06316.31
5.4.70.0130.06016.28
5.4.60.0030.06716.33
5.4.50.0070.06716.53
5.4.40.0200.04716.52
5.4.30.0330.07016.48
5.4.20.0100.06016.50

preferences:
50.2 ms | 401 KiB | 5 Q