3v4l.org

run code in 300+ PHP versions simultaneously
<?php function myErrorHandler($errno, $errstr, $errfile, $errline) { if ( E_RECOVERABLE_ERROR===$errno ) { echo "'catched' catchable fatal error\n"; return true; } return false; } set_error_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.0100.01016.50
8.3.60.0110.00718.26
8.3.50.0130.00821.08
8.3.40.0070.00718.86
8.3.30.0080.00818.49
8.3.20.0040.00420.16
8.3.10.0040.00421.73
8.3.00.0030.00618.04
8.2.190.0130.00416.58
8.2.180.0140.00316.88
8.2.170.0100.00722.96
8.2.160.0070.00720.35
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0080.00017.50
8.2.110.0030.00722.20
8.2.100.0070.00417.91
8.2.90.0030.00519.09
8.2.80.0040.00417.97
8.2.70.0000.00817.63
8.2.60.0080.00017.80
8.2.50.0060.00318.07
8.2.40.0080.00019.39
8.2.30.0070.00020.67
8.2.20.0030.00517.62
8.2.10.0000.00818.00
8.2.00.0050.00217.89
8.1.280.0110.00425.92
8.1.270.0080.00022.06
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.20
8.1.230.0120.00017.83
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.36
8.1.190.0080.00316.88
8.1.180.0040.00418.10
8.1.170.0040.00418.50
8.1.160.0070.00022.01
8.1.150.0040.00418.78
8.1.140.0050.00317.39
8.1.130.0070.00017.55
8.1.120.0070.00017.48
8.1.110.0000.00817.45
8.1.100.0050.00317.28
8.1.90.0000.00817.36
8.1.80.0030.00317.46
8.1.70.0070.00017.35
8.1.60.0040.00417.43
8.1.50.0000.00817.58
8.1.40.0040.00417.41
8.1.30.0030.00517.72
8.1.20.0000.00817.61
8.1.10.0070.00017.48
8.1.00.0080.00017.44
8.0.300.0000.00818.77
8.0.290.0030.00616.75
8.0.280.0030.00318.38
8.0.270.0000.00717.10
8.0.260.0000.00817.12
8.0.250.0000.00716.96
8.0.240.0000.00616.95
8.0.230.0000.00716.93
8.0.220.0040.00416.88
8.0.210.0070.00016.90
8.0.200.0030.00316.82
8.0.190.0080.00016.83
8.0.180.0030.00516.94
8.0.170.0040.00416.89
8.0.160.0000.00716.91
8.0.150.0050.00316.79
8.0.140.0000.00716.78
8.0.130.0000.00813.28
8.0.120.0080.00016.75
8.0.110.0000.00816.79
8.0.100.0040.00416.93
8.0.90.0000.00817.01
8.0.80.0070.01016.84
8.0.70.0000.00716.68
8.0.60.0040.00416.96
8.0.50.0030.00516.70
8.0.30.0120.00717.12
8.0.20.0150.00817.40
8.0.10.0040.00417.07
8.0.00.0090.01116.73
7.4.330.0040.00315.08
7.4.320.0030.00316.37
7.4.300.0000.00616.60
7.4.290.0000.00716.50
7.4.280.0090.00016.53
7.4.270.0030.00316.64
7.4.260.0040.00316.51
7.4.250.0040.00316.61
7.4.240.0020.00516.51
7.4.230.0000.00716.36
7.4.220.0100.01316.51
7.4.210.0030.01216.64
7.4.200.0030.00316.66
7.4.160.0080.00816.57
7.4.150.0140.00717.40
7.4.140.0090.01317.86
7.4.130.0110.01016.64
7.4.120.0110.01216.55
7.4.110.0110.00616.51
7.4.100.0090.00916.49
7.4.90.0100.00716.38
7.4.80.0080.00919.39
7.4.70.0030.01716.56
7.4.60.0100.00716.52
7.4.50.0040.00416.42
7.4.40.0090.00616.64
7.4.30.0060.01216.59
7.4.10.0080.00815.00
7.4.00.0080.00814.83
7.3.330.0050.00013.38
7.3.320.0050.00013.35
7.3.310.0070.00016.29
7.3.300.0000.00716.39
7.3.290.0110.00516.40
7.3.280.0110.00916.39
7.3.270.0060.01017.40
7.3.260.0070.01016.25
7.3.250.0100.00916.42
7.3.240.0000.01616.35
7.3.230.0070.01116.60
7.3.210.0070.01016.32
7.3.200.0140.00616.24
7.3.190.0080.01116.30
7.3.180.0060.00916.40
7.3.170.0090.00916.27
7.3.160.0090.01216.33
7.3.130.0060.01215.06
7.3.120.0130.00614.61
7.3.110.0030.01514.82
7.3.100.0100.00314.84
7.3.90.0030.01314.84
7.3.80.0110.00415.04
7.3.70.0040.01114.92
7.3.60.0090.00314.83
7.3.50.0060.01014.74
7.3.40.0030.01214.91
7.3.30.0030.00914.90
7.3.20.0100.00316.40
7.3.10.0060.00916.58
7.3.00.0100.00616.50
7.2.330.0090.01316.73
7.2.320.0000.01616.75
7.2.310.0080.00816.67
7.2.300.0060.01216.30
7.2.290.0060.01116.65
7.2.260.0140.00714.56
7.2.250.0030.01615.08
7.2.240.0030.01015.13
7.2.230.0070.01114.79
7.2.220.0060.01015.18
7.2.210.0000.01515.02
7.2.200.0040.00815.09
7.2.190.0060.01315.06
7.2.180.0060.00614.76
7.2.170.0060.01014.96
7.2.160.0040.00814.76
7.2.150.0090.00617.03
7.2.140.0090.00616.69
7.2.130.0070.00316.95
7.2.120.0080.00316.86
7.2.110.0100.00716.56
7.2.100.0040.01116.82
7.2.90.0100.00316.55
7.2.80.0110.00016.73
7.2.70.0040.01116.47
7.2.60.0100.00516.80
7.2.50.0090.00616.86
7.2.40.0060.00616.76
7.2.30.0060.00916.99
7.2.20.0070.00716.90
7.2.10.0100.00316.84
7.2.00.0030.01118.03
7.1.330.0030.01415.82
7.1.320.0090.00615.49
7.1.310.0030.01015.60
7.1.300.0100.00315.72
7.1.290.0130.00315.58
7.1.280.0070.00715.81
7.1.270.0050.00315.57
7.1.260.0000.01015.87
7.1.250.0030.00615.69
7.1.240.0000.01515.71
7.1.230.0070.00715.80
7.1.220.0090.00615.46
7.1.210.0070.00615.46
7.1.200.0040.01015.68
7.1.190.0030.01315.70
7.1.180.0100.00315.78
7.1.170.0000.01015.68
7.1.160.0030.01315.79
7.1.150.0100.00315.72
7.1.140.0090.00315.70
7.1.130.0100.00715.69
7.1.120.0090.00615.83
7.1.110.0070.00715.66
7.1.100.0060.00516.99
7.1.90.0090.00315.84
7.1.80.0030.01215.85
7.1.70.0030.00916.31
7.1.60.0100.00917.48
7.1.50.0020.01016.29
7.1.40.0030.01015.74
7.1.30.0070.00415.40
7.1.20.0040.00415.63
7.1.10.0060.00315.75
7.1.00.0090.03719.07
7.0.330.0100.00015.07
7.0.320.0070.01015.38
7.0.310.0040.01115.09
7.0.300.0050.00315.39
7.0.290.0000.01015.14
7.0.280.0000.01615.39
7.0.270.0110.00315.25
7.0.260.0000.00815.27
7.0.250.0050.00515.29
7.0.240.0100.00015.21
7.0.230.0040.00815.35
7.0.220.0000.01015.31
7.0.210.0030.00515.39
7.0.200.0040.00715.82
7.0.190.0040.00715.36
7.0.180.0050.00815.35
7.0.170.0040.00715.25
7.0.160.0070.00714.98
7.0.150.0000.01015.31
7.0.140.0000.01215.41
7.0.130.0100.00315.39
7.0.120.0080.00815.47
7.0.110.0060.00815.29
7.0.100.0070.00715.12
7.0.90.0000.01015.41
7.0.80.0100.00315.16
7.0.70.0040.00415.07
7.0.60.0080.04517.58
7.0.50.0070.04316.66
7.0.40.0100.04616.81
7.0.30.0170.02916.86
7.0.20.0150.03316.86
7.0.10.0060.03316.63
7.0.00.0050.02416.73
5.6.400.0050.00514.26
5.6.390.0040.01214.12
5.6.380.0080.00814.02
5.6.370.0030.01314.47
5.6.360.0050.00514.29
5.6.350.0030.00913.91
5.6.340.0030.01314.34
5.6.330.0040.00814.41
5.6.320.0000.01314.13
5.6.310.0030.00714.50
5.6.300.0060.00914.25
5.6.290.0030.01014.39
5.6.280.0040.03417.75
5.6.270.0060.00914.50
5.6.260.0030.01014.44
5.6.250.0060.00914.24
5.6.240.0040.00714.34
5.6.230.0040.01114.21
5.6.220.0030.00714.66
5.6.210.0020.04217.45
5.6.200.0020.03016.23
5.6.190.0080.03217.46
5.6.180.0180.03817.43
5.6.170.0180.03017.55
5.6.160.0120.04017.47
5.6.150.0060.02316.22
5.6.140.0030.03216.28
5.6.130.0110.03716.27
5.6.120.0090.04417.53
5.6.110.0090.04217.84
5.6.100.0090.04717.75
5.6.90.0120.03717.49
5.6.80.0020.02617.37
5.6.70.0030.01014.39
5.6.60.0030.01014.48
5.6.50.0040.00814.11
5.6.40.0030.01114.52
5.6.30.0080.00414.28
5.6.20.0040.00814.20
5.6.10.0080.00414.11
5.6.00.0060.00614.49
5.5.380.0030.01214.22
5.5.370.0090.00314.09
5.5.360.0040.00814.38
5.5.350.0060.01817.33
5.5.340.0020.02616.12
5.5.330.0070.03017.30
5.5.320.0190.01917.32
5.5.310.0200.02317.43
5.5.300.0050.02216.19
5.5.290.0030.04116.25
5.5.280.0100.04317.73
5.5.270.0070.04217.51
5.5.260.0030.04717.59
5.5.250.0030.04117.61
5.5.240.0000.03517.22
5.5.230.0140.00014.33
5.5.220.0060.00614.31
5.5.210.0040.00814.10
5.5.200.0070.00714.06
5.5.190.0000.01114.28
5.5.180.0030.01014.12
5.5.170.0060.00614.40
5.5.160.0040.01114.13
5.5.150.0090.00914.21
5.5.140.0030.01314.26
5.5.130.0070.00314.38
5.5.120.0040.00714.25
5.5.110.0030.00914.16
5.5.100.0000.01414.07
5.5.90.0030.01014.11
5.5.80.0040.01514.37
5.5.70.0060.00614.14
5.5.60.0150.00014.19
5.5.50.0030.01014.08
5.5.40.0040.01113.98
5.5.30.0110.00414.18
5.5.20.0060.00614.13
5.5.10.0030.01013.92
5.5.00.0060.00314.16
5.4.450.0320.03315.32
5.4.440.0400.04015.13
5.4.430.0380.02515.33
5.4.420.0380.02815.29
5.4.410.0320.03015.16
5.4.400.0400.02714.98
5.4.390.0360.03115.14
5.4.380.0350.03015.08
5.4.370.0320.02815.19
5.4.360.0380.02814.90
5.4.350.0380.03515.26
5.4.340.0430.03015.00
5.4.330.0070.00310.99
5.4.320.0400.02714.94
5.4.310.0410.03315.04
5.4.300.0420.02615.04
5.4.290.0420.02515.21
5.4.280.0330.03014.96
5.4.270.0450.03514.93
5.4.260.0470.03915.17
5.4.250.0350.03015.18
5.4.240.0450.02314.96
5.4.230.0370.03115.09
5.4.220.0440.02215.03
5.4.210.0360.03115.15
5.4.200.0320.03515.11
5.4.190.0370.02715.19
5.4.180.0350.02614.96
5.4.170.0350.02315.03
5.4.160.0440.02615.00
5.4.150.0400.02714.85
5.4.140.0330.02913.71
5.4.130.0350.02813.71
5.4.120.0360.02813.79
5.4.110.0400.02713.90
5.4.100.0350.03513.79
5.4.90.0570.02713.73
5.4.80.0430.03513.50
5.4.70.0200.02613.82
5.4.60.0070.02413.71
5.4.50.0030.03213.72
5.4.40.0130.01813.88
5.4.30.0160.02613.74
5.4.20.0140.02213.76
5.4.10.0030.01011.18
5.4.00.0000.00610.98

preferences:
47.46 ms | 401 KiB | 5 Q