3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { $func = function(Hoge $hoge) { echo '★★func called!★★', PHP_EOL; }; set_error_handler (function ($errno, $errstr, $errfile, $errline) { printf('★★error handler at line(%d) called! errno = %d★★' . PHP_EOL, __LINE__, $errno); echo $errstr, PHP_EOL; return; }); $func(); echo '-----', PHP_EOL; set_error_handler (function ($errno, $errstr, $errfile, $errline) { printf('★★error handler at line(%d) called! errno = %d★★' . PHP_EOL, __LINE__, $errno); echo $errstr, PHP_EOL; return false; }); $func(); } catch (\Error $e) { echo $e->getMessage(); }

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.4.20.0180.00617.86
8.4.10.0060.01319.69
8.3.150.0170.00318.48
8.3.140.0050.00317.14
8.3.130.0080.00018.38
8.3.120.0040.01118.76
8.3.110.0090.00020.94
8.3.100.0090.00024.06
8.3.90.0080.00026.77
8.3.80.0060.00316.63
8.3.70.0090.00616.75
8.3.60.0070.00718.55
8.3.50.0090.00923.63
8.3.40.0120.00621.86
8.3.30.0110.00418.63
8.3.20.0030.00724.18
8.3.10.0080.00024.66
8.3.00.0070.00026.16
8.2.270.0140.00417.19
8.2.260.0040.00416.85
8.2.250.0050.00317.02
8.2.240.0120.00319.17
8.2.230.0060.00322.58
8.2.220.0090.00337.54
8.2.210.0130.00626.77
8.2.200.0090.00016.75
8.2.190.0110.00716.63
8.2.180.0090.01225.92
8.2.170.0120.00319.01
8.2.160.0110.00722.96
8.2.150.0000.00725.66
8.2.140.0040.00424.66
8.2.130.0130.00726.16
8.2.120.0040.00421.13
8.2.110.0030.00719.02
8.2.100.0090.00317.91
8.2.90.0040.00419.28
8.2.80.0030.00517.97
8.2.70.0030.00717.63
8.2.60.0000.00817.50
8.2.50.0040.00417.63
8.2.40.0040.00419.77
8.2.30.0070.00019.37
8.2.20.0000.00717.95
8.2.10.0000.00719.24
8.2.00.0000.00819.14
8.1.310.0140.00318.58
8.1.300.0060.00318.22
8.1.290.0090.00018.88
8.1.280.0070.01125.92
8.1.270.0090.00924.66
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0040.00720.98
8.1.230.0080.00317.77
8.1.220.0040.00417.78
8.1.210.0060.00318.77
8.1.200.0040.00717.38
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0040.00417.62
8.1.160.0000.00718.95
8.1.150.0000.00718.93
8.1.140.0000.00820.79
8.1.130.0050.00317.51
8.1.120.0000.00817.50
8.1.110.0030.00617.37
8.1.100.0080.00017.37
8.1.90.0000.00717.45
8.1.80.0040.00417.51
8.1.70.0040.00417.36
8.1.60.0030.00617.46
8.1.50.0020.00517.47
8.1.40.0000.00817.50
8.1.30.0040.00417.67
8.1.20.0030.00617.61
8.1.10.0040.00417.59
8.1.00.0030.00617.57
8.0.300.0000.00818.77
8.0.290.0060.00316.88
8.0.280.0040.00418.45
8.0.270.0040.00416.89
8.0.260.0070.00016.97
8.0.250.0030.00516.93
8.0.240.0030.00616.92
8.0.230.0070.00317.00
8.0.220.0040.00416.91
8.0.210.0060.00016.91
8.0.200.0030.00317.01
8.0.190.0000.00717.03
8.0.180.0080.00017.05
8.0.170.0060.00317.00
8.0.160.0000.00716.96
8.0.150.0000.00816.78
8.0.140.0030.00516.82
8.0.130.0050.00013.43
8.0.120.0060.00316.87
8.0.110.0000.00716.87
8.0.100.0070.00016.92
8.0.90.0030.00317.04
8.0.80.0090.00916.93
8.0.70.0000.00716.98
8.0.60.0040.00416.80
8.0.50.0080.00017.01
8.0.30.0140.00416.86
8.0.20.0110.00917.01
8.0.10.0050.00317.00
8.0.00.0100.00916.86
7.4.330.0060.00015.55
7.4.320.0030.00316.53
7.4.300.0030.00316.57
7.4.290.0040.00416.54
7.4.280.0050.00216.53
7.4.270.0000.00816.64
7.4.260.0000.00816.63
7.4.250.0050.00416.55
7.4.240.0050.00216.63
7.4.230.0070.00016.52
7.4.220.0070.00016.44
7.4.210.0070.00916.55
7.4.200.0000.00716.71
7.4.130.0210.00916.77
7.4.120.0270.00416.66
7.4.110.0240.00516.46
7.4.100.0240.00816.71
7.4.90.0180.01316.63
7.4.80.0260.00416.51
7.4.70.0240.00816.51
7.4.60.0170.01216.53
7.4.50.0240.00616.41
7.4.40.0240.00716.53
7.4.30.0260.00616.56
7.4.20.0230.01216.37
7.4.10.0170.01216.62
7.4.00.0170.00916.45
7.3.330.0110.00016.32
7.3.320.0080.00013.33
7.3.310.0070.00016.34
7.3.300.0040.00416.17
7.3.290.0100.00416.33
7.3.260.0140.00816.25
7.3.250.0250.00616.35
7.3.240.0290.00216.31
7.3.230.0170.01516.29
7.3.220.0240.00716.33
7.3.210.0240.01016.40
7.3.200.0190.01016.46
7.3.190.0270.00416.42
7.3.180.0260.00616.46
7.3.170.0210.01016.39
7.3.160.0200.01616.37
7.3.150.0190.01616.34
7.3.140.0270.00716.52
7.3.130.0280.00716.46
7.3.120.0220.00816.48
7.3.110.0220.00816.41
7.3.100.0190.00916.35
7.3.90.0190.00916.48
7.3.80.0220.00416.39
7.3.70.0180.00716.46
7.3.60.0210.00316.21
7.3.50.0160.01016.30
7.3.40.0180.00716.29
7.3.30.0170.01516.44
7.3.20.0240.00716.38
7.3.10.0170.01016.39
7.3.00.0170.00716.26
7.2.340.0180.01416.50
7.2.330.0210.01416.52
7.2.320.0230.00916.66
7.2.310.0240.01116.62
7.2.300.0260.00716.35
7.2.290.0200.01416.55
7.2.280.0260.00816.68
7.2.270.0220.01216.73
7.2.260.0220.00816.58
7.2.250.0250.00616.54
7.2.240.0210.01216.67
7.2.230.0240.00616.56
7.2.220.0160.00916.55
7.2.210.0130.01216.46
7.2.200.0130.01116.63
7.2.190.0140.01116.56
7.2.180.0190.00816.48
7.2.170.0190.00516.57
7.2.160.0170.01016.45
7.2.150.0160.01116.62
7.2.140.0110.01416.63
7.2.130.0180.00716.72
7.2.120.0090.01416.72
7.2.110.0130.01216.62
7.2.100.0220.00216.60
7.2.90.0200.00716.58
7.2.80.0170.00816.58
7.2.70.0190.00716.62
7.2.60.0170.00816.62
7.2.50.0170.00816.51
7.2.40.0180.00716.63
7.2.30.0130.01216.66
7.2.20.0260.00816.64
7.2.10.0220.00516.58
7.2.00.0170.00816.57
7.1.330.0250.00315.73
7.1.320.0170.01115.59
7.1.310.0200.00815.41
7.1.300.0210.00715.57
7.1.290.0210.00915.30
7.1.280.0260.00715.55
7.1.270.0200.01015.47
7.1.260.0150.01215.42
7.1.250.0140.01415.42
7.1.240.0230.00615.45
7.1.230.0160.01115.49
7.1.220.0150.01115.40
7.1.210.0220.00715.44
7.1.200.0270.00515.59
7.1.190.0320.00715.48
7.1.180.0130.01415.55
7.1.170.0200.00815.34
7.1.160.0200.00815.44
7.1.150.0170.01015.39
7.1.140.0120.01615.56
7.1.130.0190.01315.50
7.1.120.0240.00615.45
7.1.110.0300.00315.60
7.1.100.0230.00615.44
7.1.90.0160.01215.45
7.1.80.0220.00615.56
7.1.70.0110.01815.54
7.1.60.0200.00715.43
7.1.50.0240.01115.31
7.1.40.0210.00615.50
7.1.30.0180.01215.48
7.1.20.0280.00415.52
7.1.10.0230.00615.57
7.1.00.0260.00315.39
7.0.330.0150.01215.20
7.0.320.0160.01115.27
7.0.310.0250.01015.12
7.0.300.0130.01315.39
7.0.290.0270.00015.01
7.0.280.0270.00615.27
7.0.270.0250.00315.27
7.0.260.0240.00315.23
7.0.250.0280.01015.13
7.0.240.0170.01015.25
7.0.230.0200.01215.34
7.0.220.0160.01015.27
7.0.210.0250.00415.29
7.0.200.0210.00715.26
7.0.190.0250.00615.15
7.0.180.0270.00015.14
7.0.170.0260.00315.31
7.0.160.0190.00715.12
7.0.150.0360.00415.31
7.0.140.0140.01415.31
7.0.130.0270.00015.20
7.0.120.0240.01215.27
7.0.110.0270.00315.31
7.0.100.0230.00315.23
7.0.90.0220.00515.19
7.0.80.0190.01515.18
7.0.70.0240.00415.04
7.0.60.0170.01115.13
7.0.50.0120.01515.20
7.0.40.0170.00915.07
7.0.30.0200.00715.21
7.0.20.0210.00815.20
7.0.10.0230.00315.03
7.0.00.0160.01015.23
5.6.400.0260.00616.00
5.6.390.0260.00315.86
5.6.380.0140.01416.09
5.6.370.0150.01316.05
5.6.360.0270.00316.06
5.6.350.0200.00916.03
5.6.340.0200.01615.93
5.6.330.0210.00815.84
5.6.320.0240.00415.95
5.6.310.0160.01315.98
5.6.300.0210.01015.91
5.6.290.0230.01315.88
5.6.280.0210.00715.77
5.6.270.0230.01215.88
5.6.260.0160.01215.96
5.6.250.0190.01015.92
5.6.240.0200.00915.87
5.6.230.0210.00915.85
5.6.220.0180.01215.82
5.6.210.0160.01315.80
5.6.200.0220.00715.89
5.6.190.0240.00616.07
5.6.180.0200.00815.69
5.6.170.0180.01115.99
5.6.160.0200.00816.04
5.6.150.0170.01315.86
5.6.140.0260.00315.83
5.6.130.0240.00616.02
5.6.120.0160.01616.14
5.6.110.0250.00615.79
5.6.100.0150.01815.74
5.6.90.0100.02015.61
5.6.80.0210.01115.58
5.6.70.0250.00315.98
5.6.60.0160.01315.76
5.6.50.0150.01415.71
5.6.40.0130.02015.88
5.6.30.0270.00915.83
5.6.20.0160.01215.96
5.6.10.0190.00816.05
5.6.00.0210.00715.97
5.5.380.0190.01015.76
5.5.370.0200.00915.69
5.5.360.0230.00715.74
5.5.350.0220.00715.66
5.5.340.0180.01115.91
5.5.330.0190.01115.60
5.5.320.0190.01015.71
5.5.310.0230.00715.62
5.5.300.0200.01216.18
5.5.290.0130.01615.68
5.5.280.0180.01215.91
5.5.270.0210.00916.06
5.5.260.0180.01415.63
5.5.250.0160.01315.80
5.5.240.0260.00415.71
5.5.230.0250.00415.79
5.5.220.0230.00615.79
5.5.210.0190.00815.74
5.5.200.0160.01615.68
5.5.190.0170.01216.00
5.5.180.0190.00815.71
5.5.170.0150.01515.86
5.5.160.0170.01215.86
5.5.150.0230.00715.72
5.5.140.0120.01615.89
5.5.130.0180.01115.72
5.5.120.0130.01615.91
5.5.110.0180.01115.87
5.5.100.0200.01215.56
5.5.90.0270.00715.78
5.5.80.0190.00815.81
5.5.70.0220.00915.80
5.5.60.0170.01715.61
5.5.50.0150.01515.65
5.5.40.0120.02315.77
5.5.30.0090.01915.84
5.5.20.0160.01315.63
5.5.10.0110.01615.84
5.5.00.0200.01015.59
5.4.450.0130.01012.95
5.4.440.0150.00712.77
5.4.430.0130.00812.70
5.4.420.0180.01012.81
5.4.410.0160.01212.75
5.4.400.0140.00712.84
5.4.390.0180.00412.56
5.4.380.0160.00512.55
5.4.370.0170.00612.82
5.4.360.0160.00912.72
5.4.350.0170.00512.76
5.4.340.0230.00012.74
5.4.330.0150.00812.81
5.4.320.0170.00612.66
5.4.310.0180.00312.66
5.4.300.0120.01212.72
5.4.290.0180.00512.62
5.4.280.0120.01212.59
5.4.270.0130.00912.77
5.4.260.0160.01312.55
5.4.250.0210.00012.61
5.4.240.0160.00512.64
5.4.230.0110.01112.55
5.4.220.0150.00712.64
5.4.210.0150.00712.76
5.4.200.0270.00712.72
5.4.190.0160.00812.51
5.4.180.0130.00812.45
5.4.170.0140.00712.57
5.4.160.0190.00612.77
5.4.150.0140.00712.54
5.4.140.0120.00812.79
5.4.130.0120.00812.68
5.4.120.0170.00312.63
5.4.110.0170.00412.67
5.4.100.0170.00412.59
5.4.90.0160.00512.69
5.4.80.0040.01712.65
5.4.70.0140.00812.64
5.4.60.0110.00912.67
5.4.50.0090.01512.66
5.4.40.0160.00512.69
5.4.30.0120.00812.66
5.4.20.0140.01012.79
5.4.10.0120.00912.71
5.4.00.0110.01112.48
5.3.290.0170.00713.17
5.3.280.0140.00913.05
5.3.270.0160.00813.10
5.3.260.0140.01413.01
5.3.250.0130.00913.03
5.3.240.0130.00812.90
5.3.230.0140.00913.04
5.3.220.0150.00712.92
5.3.210.0180.00512.90
5.3.200.0170.00612.93
5.3.190.0200.00313.15
5.3.180.0140.01013.11
5.3.170.0140.00913.26
5.3.160.0190.00313.09
5.3.150.0190.00313.09
5.3.140.0180.00613.18
5.3.130.0150.01013.02
5.3.120.0140.00913.19
5.3.110.0180.00313.16
5.3.100.0150.00713.19
5.3.90.0160.00813.08
5.3.80.0170.00512.99
5.3.70.0090.01313.02
5.3.60.0170.00413.02
5.3.50.0190.00413.17
5.3.40.0160.01013.08
5.3.30.0110.01113.01
5.3.20.0090.01212.95
5.3.10.0110.01413.15
5.3.00.0080.01312.92
5.2.170.0070.01011.95
5.2.160.0140.00511.95
5.2.150.0120.00911.95
5.2.140.0140.00411.95
5.2.130.0130.00511.95
5.2.120.0170.00011.95
5.2.110.0150.00311.95
5.2.100.0070.01111.95
5.2.90.0120.00611.95
5.2.80.0120.00611.95
5.2.70.0100.00711.95
5.2.60.0100.00611.95
5.2.50.0190.00311.95
5.2.40.0140.00411.95
5.2.30.0140.00311.95
5.2.20.0120.00611.95
5.2.10.0100.00711.95
5.2.00.0100.00811.95
5.1.60.0070.01011.95
5.1.50.0100.00711.95
5.1.40.0070.01011.95
5.1.30.0160.00311.95
5.1.20.0110.00611.95
5.1.10.0070.01011.95
5.1.00.0110.00511.95
5.0.50.0070.00711.95
5.0.40.0130.00511.95
5.0.30.0060.00911.95
5.0.20.0050.01011.95
5.0.10.0100.00511.95
5.0.00.0060.00911.95
4.4.90.0090.00011.95
4.4.80.0070.00411.95
4.4.70.0050.00311.95
4.4.60.0060.00211.95
4.4.50.0060.00311.95
4.4.40.0070.00311.95
4.4.30.0030.00611.95
4.4.20.0060.00411.95
4.4.10.0090.00011.95
4.4.00.0030.00611.95
4.3.110.0100.00211.95
4.3.100.0070.00311.95
4.3.90.0090.00011.95
4.3.80.0040.00411.95
4.3.70.0060.00311.95
4.3.60.0070.00211.95
4.3.50.0090.00011.95
4.3.40.0060.00311.95
4.3.30.0070.00011.95
4.3.20.0040.00411.95
4.3.10.0040.00411.95
4.3.00.0030.00311.95

preferences:
32.33 ms | 403 KiB | 5 Q