3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Logger { public function log() { set_error_handler('count'); echo __METHOD__ . "\n"; restore_error_handler(); } } function first_error_handler() { echo __FUNCTION__ . "\n"; } class ErrorHandler { public function handleError() { echo __METHOD__ . "\n"; (new Logger())->log(); } } set_error_handler('first_error_handler'); set_error_handler([new ErrorHandler(), 'handleError']); trigger_error('AN ERROR', E_USER_DEPRECATED); var_dump(set_error_handler(null));

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.00.0120.01119.88
8.4.150.0020.00014.05
8.4.140.0090.01217.38
8.4.130.0090.00918.86
8.4.120.0110.00720.55
8.4.110.0050.00418.85
8.4.100.0140.00717.64
8.4.90.0090.01020.30
8.4.80.0100.01018.91
8.4.70.0100.01018.06
8.4.60.0060.00318.83
8.4.50.0060.00618.55
8.4.40.0070.01322.10
8.4.30.0130.00722.60
8.4.20.0080.00820.32
8.4.10.0040.00717.80
8.3.280.0110.00918.23
8.3.270.0120.00716.54
8.3.260.0150.00416.73
8.3.250.0110.00817.06
8.3.240.0120.00818.18
8.3.230.0120.00816.58
8.3.220.0060.00418.70
8.3.210.0110.00616.47
8.3.200.0040.00516.52
8.3.190.0120.00618.73
8.3.180.0110.00818.93
8.3.170.0070.01117.05
8.3.160.0090.00616.57
8.3.150.0090.00917.32
8.3.140.0060.00316.48
8.3.130.0040.00418.36
8.3.120.0070.00318.86
8.3.110.0050.00520.94
8.3.100.0060.00324.06
8.3.90.0000.00826.77
8.3.80.0090.00017.97
8.3.70.0070.00718.43
8.3.60.0040.01118.43
8.3.50.0130.00717.31
8.3.40.0090.00618.67
8.3.30.0110.00418.73
8.3.20.0080.00021.89
8.3.10.0040.00423.53
8.3.00.0080.00022.41
8.2.290.0090.01016.73
8.2.280.0140.00518.61
8.2.270.0110.00416.68
8.2.260.0050.00318.75
8.2.250.0050.00318.24
8.2.240.0090.00016.98
8.2.230.0100.00022.58
8.2.220.0060.00337.54
8.2.210.0130.00726.77
8.2.200.0070.00318.32
8.2.190.0090.00616.63
8.2.180.0130.00716.38
8.2.170.0100.00322.96
8.2.160.0030.01020.16
8.2.150.0030.00724.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0060.00319.36
8.2.110.0070.00322.09
8.2.100.0090.00317.91
8.2.90.0000.00817.73
8.2.80.0000.00817.97
8.2.70.0030.00617.68
8.2.60.0000.00718.16
8.2.50.0000.00818.10
8.2.40.0000.00719.32
8.2.30.0040.00419.30
8.2.20.0000.00718.17
8.2.10.0000.00719.25
8.2.00.0000.00719.23
8.1.330.0140.00616.40
8.1.320.0110.00818.12
8.1.310.0060.00316.63
8.1.300.0090.00916.19
8.1.290.0040.00430.84
8.1.280.0070.00725.92
8.1.270.0040.00419.04
8.1.260.0030.00626.35
8.1.250.0070.01028.09
8.1.240.0040.00423.96
8.1.230.0040.00719.05
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0000.00917.35
8.1.190.0030.00517.13
8.1.180.0040.00418.10
8.1.170.0060.00318.53
8.1.160.0000.00718.86
8.1.150.0050.00318.84
8.1.140.0040.00420.69
8.1.130.0080.00020.31
8.1.120.0060.00317.39
8.1.110.0000.00717.32
8.1.100.0040.00417.37
8.1.90.0040.00417.36
8.1.80.0040.00417.40
8.1.70.0000.00717.31
8.1.60.0060.00617.53
8.1.50.0000.00817.38
8.1.40.0000.00817.34
8.1.30.0050.00617.51
8.1.20.0040.00417.59
8.1.10.0080.00017.43
8.1.00.0040.00417.45
8.0.300.0040.00419.64
8.0.290.0000.00816.75
8.0.280.0070.00018.42
8.0.270.0000.00717.20
8.0.260.0030.00518.32
8.0.250.0030.00317.02
8.0.240.0000.00717.02
8.0.230.0040.00416.84
8.0.220.0030.00316.88
8.0.210.0000.00716.92
8.0.200.0000.00716.91
8.0.190.0070.00016.84
8.0.180.0000.00816.80
8.0.170.0060.00316.95
8.0.160.0000.00716.87
8.0.150.0030.00716.78
8.0.140.0050.00316.75
8.0.130.0020.00613.31
8.0.120.0070.00016.76
8.0.110.0040.00416.96
8.0.100.0000.00716.78
8.0.90.0040.00416.69
8.0.80.0050.01316.93
8.0.70.0040.00416.73
8.0.60.0040.00416.75
8.0.50.0050.00316.74
8.0.30.0030.01517.14
8.0.20.0070.01117.22
8.0.10.0040.00416.90
8.0.00.0110.00616.59
7.4.330.0040.00415.55
7.4.320.0000.00716.43
7.4.300.0000.00616.38
7.4.290.0070.00016.43
7.4.280.0040.00716.50
7.4.270.0070.00016.57
7.4.260.0050.00216.36
7.4.250.0040.00416.55
7.4.240.0070.00016.54
7.4.230.0030.00516.55
7.4.220.0050.00316.61
7.4.210.0070.00916.48
7.4.200.0030.00316.51
7.4.160.0110.00716.46
7.4.140.0130.00517.86
7.4.130.0130.00616.62
7.4.120.0090.00916.32
7.4.110.0100.00716.55
7.4.100.0060.01216.40
7.4.90.0090.00916.39
7.4.80.0110.01119.39
7.4.70.0030.01316.42
7.4.60.0090.00716.48
7.4.50.0060.00916.46
7.4.40.0080.00816.51
7.4.00.0060.01114.94
7.3.330.0000.00713.29
7.3.320.0000.00713.23
7.3.310.0020.00516.25
7.3.300.0000.00816.28
7.3.290.0070.00016.22
7.3.280.0060.00816.30
7.3.260.0110.00616.46
7.3.240.0110.00916.35
7.3.230.0060.01216.61
7.3.210.0160.00016.43
7.3.200.0140.00716.32
7.3.190.0090.00916.29
7.3.180.0140.00316.61
7.3.170.0050.01716.43
7.3.160.0070.01016.37
7.3.120.0000.01914.80
7.3.110.0090.00914.95
7.3.100.0060.00614.47
7.3.90.0040.01114.76
7.3.80.0130.00014.68
7.3.70.0080.00314.69
7.3.60.0070.01114.93
7.3.50.0070.00714.87
7.3.40.0060.01214.75
7.3.30.0070.00714.79
7.3.20.0090.00616.69
7.3.10.0230.00915.71
7.3.00.0230.01115.77
7.2.330.0090.01616.74
7.2.320.0100.00616.79
7.2.310.0130.00316.67
7.2.300.0100.00716.79
7.2.290.0120.00616.41
7.2.250.0150.00315.01
7.2.240.0070.01415.19
7.2.230.0000.01714.80
7.2.220.0040.00815.17
7.2.210.0030.00914.89
7.2.200.0060.00614.97
7.2.190.0030.01315.08
7.2.180.0100.01014.86
7.2.170.0000.01415.04
7.2.130.0350.01015.67
7.2.120.0230.00315.55
7.2.110.0260.00815.63
7.2.100.0250.00615.57
7.2.90.0300.00615.66
7.2.80.0290.00515.66
7.2.70.0320.00815.45
7.2.60.0260.00715.62
7.2.50.0270.00715.61
7.2.40.0350.00515.50
7.2.30.0350.00515.65
7.2.20.0370.00515.56
7.2.10.0280.00815.52
7.2.00.0330.00715.70
7.1.330.0100.00615.81
7.1.320.0080.00515.68
7.1.310.0040.00815.79
7.1.300.0100.00715.79
7.1.290.0060.00915.68
7.1.280.0030.00915.53
7.1.270.0070.01015.45
7.1.260.0000.01415.68
7.1.250.0270.00614.48

preferences:
50.78 ms | 403 KiB | 5 Q