3v4l.org

run code in 300+ PHP versions simultaneously
<?php function t35_handler_MOO($no, $msg){ echo __LINE__.__METHOD__."\n"; restore_error_handler(); echo __LINE__.__METHOD__."\n"; } function t35_handler($no, $msg){ echo __LINE__.__METHOD__."\n"; restore_error_handler(); echo __LINE__.__METHOD__."\n"; } function t35(){ set_error_handler("t35_handler_MOO"); echo "old handler=".set_error_handler("t35_handler")."\n"; trigger_error("error1"); //echo "old handler=".set_error_handler("t35_handler")."\n"; trigger_error("error2"); } t35(); ?>

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.40.0070.00718.71
8.3.30.0140.00020.36
8.3.20.0050.00318.73
8.3.10.0080.00020.98
8.3.00.0060.00322.43
8.2.170.0110.00722.96
8.2.160.0070.00720.26
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00326.16
8.2.120.0050.00221.13
8.2.110.0030.00620.52
8.2.100.0040.00817.91
8.2.90.0000.00819.07
8.2.80.0040.00417.97
8.2.70.0050.00317.38
8.2.60.0090.00017.93
8.2.50.0050.00318.10
8.2.40.0030.00622.35
8.2.30.0080.00021.09
8.2.20.0030.00617.70
8.2.10.0040.00417.74
8.2.00.0030.00517.73
8.1.270.0040.00423.99
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0030.00621.25
8.1.230.0080.00417.52
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0030.00617.35
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0030.00618.32
8.1.160.0050.00218.82
8.1.150.0080.00018.55
8.1.140.0020.00517.35
8.1.130.0000.00717.73
8.1.120.0080.00017.29
8.1.110.0040.00417.46
8.1.100.0000.00817.28
8.1.90.0030.00317.23
8.1.80.0000.00717.25
8.1.70.0070.00017.40
8.1.60.0040.00417.50
8.1.50.0050.00217.44
8.1.40.0030.00617.39
8.1.30.0000.00717.39
8.1.20.0040.00417.57
8.1.10.0000.00717.36
8.1.00.0050.00317.43
8.0.300.0040.00418.77
8.0.290.0030.00516.75
8.0.280.0000.00718.45
8.0.270.0050.00217.19
8.0.260.0040.00416.77
8.0.250.0030.00316.93
8.0.240.0080.00016.82
8.0.230.0040.00416.95
8.0.220.0040.00416.84
8.0.210.0000.00816.79
8.0.200.0000.00716.85
8.0.190.0000.00716.91
8.0.180.0040.00416.84
8.0.170.0070.00016.91
8.0.160.0040.00416.95
8.0.150.0080.00016.73
8.0.140.0070.00016.86
8.0.130.0050.00013.28
8.0.120.0030.00516.80
8.0.110.0040.00416.84
8.0.100.0040.00416.95
8.0.90.0040.00416.95
8.0.80.0120.00416.84
8.0.70.0070.00016.95
8.0.60.0040.00416.73
8.0.50.0070.00016.89
8.0.30.0120.00717.04
8.0.20.0150.01017.40
8.0.10.0040.00416.73
8.0.00.0100.01216.63
7.4.330.0000.00516.66
7.4.320.0000.00616.23
7.4.300.0000.00616.44
7.4.290.0030.00316.53
7.4.280.0030.00316.35
7.4.270.0030.00316.45
7.4.260.0000.00613.22
7.4.250.0000.00816.40
7.4.240.0030.00316.53
7.4.230.0070.00016.51
7.4.220.0130.01316.40
7.4.210.0090.00616.49
7.4.200.0030.00316.45
7.4.190.0000.00716.61
7.4.160.0140.00316.66
7.4.150.0060.01317.40
7.4.140.0090.01117.86
7.4.130.0090.01116.46
7.4.120.0100.00816.24
7.4.110.0170.00016.58
7.4.100.0030.01616.57
7.4.90.0090.01216.57
7.4.80.0100.00719.39
7.4.70.0070.01016.35
7.4.60.0120.00616.48
7.4.50.0060.00316.41
7.4.40.0060.01022.77
7.4.30.0090.00916.50
7.3.330.0060.00013.33
7.3.320.0030.00313.16
7.3.310.0020.00516.12
7.3.300.0080.00016.22
7.3.290.0070.00716.24
7.3.280.0060.01216.26
7.3.270.0110.01117.40
7.3.260.0130.00818.24
7.3.250.0090.01116.47
7.3.240.0070.01116.35
7.3.230.0030.01316.39
7.3.210.0200.00316.42
7.3.200.0090.01019.39
7.3.190.0060.01616.42
7.3.180.0090.00616.61
7.3.170.0120.00416.46
7.3.160.0130.00716.20
7.2.330.0150.00316.66
7.2.320.0120.00616.67
7.2.310.0060.01316.54
7.2.300.0000.01616.60
7.2.290.0070.01116.48
7.0.100.0100.08019.90
7.0.90.0030.08319.95
7.0.80.0130.08720.07
7.0.70.0130.08319.88
7.0.60.0130.08020.00
7.0.50.0330.07720.25
7.0.40.0200.07720.15
7.0.30.0100.06720.09
7.0.20.0100.07320.10
7.0.10.0030.06020.05
7.0.00.0130.07020.04
5.6.250.0370.05720.58
5.6.240.0130.07320.64
5.6.230.0170.09020.55
5.6.220.0230.08020.45
5.6.210.0130.07320.57
5.6.200.0130.04720.99
5.6.190.0170.08321.07
5.6.180.0070.09020.99
5.6.170.0170.08021.11
5.6.160.0100.08321.02
5.6.150.0170.07320.94
5.6.140.0200.06320.91
5.6.130.0070.08020.89
5.6.120.0100.04020.98
5.6.110.0100.04321.07
5.6.100.0130.03321.07
5.6.90.0070.04020.97
5.6.80.0070.04020.36
5.6.70.0100.06320.51
5.6.60.0100.03720.31
5.6.50.0030.04020.44
5.6.40.0100.07720.37
5.6.30.0070.07720.44
5.6.20.0130.07320.26
5.6.10.0170.06020.39
5.6.00.0130.08020.26
5.5.380.0200.07320.32
5.5.370.0170.06320.33
5.5.360.0070.09320.37
5.5.350.0100.08720.43
5.5.340.0030.09720.82
5.5.330.0200.07720.74
5.5.320.0100.08720.88
5.5.310.0170.07020.62
5.5.300.0170.08020.86
5.5.290.0100.08720.86
5.5.280.0200.06020.82
5.5.270.0230.02320.77
5.5.260.0100.04020.86
5.5.250.0100.04320.59
5.5.240.0030.05020.13
5.5.230.0030.07320.19
5.5.220.0070.06720.21
5.5.210.0030.04020.24
5.5.200.0070.06020.22
5.5.190.0100.07320.13
5.5.180.0070.06020.20
5.5.160.0100.07719.98
5.5.150.0130.07320.13
5.5.140.0130.05720.07
5.5.130.0170.06320.07
5.5.120.0130.07320.18
5.5.110.0030.08320.09
5.5.100.0330.04020.04
5.5.90.0100.08320.12
5.5.80.0030.06720.04
5.5.70.0030.05320.07
5.5.60.0100.07719.95
5.5.50.0100.07720.03
5.5.40.0000.07019.99
5.5.30.0070.05320.06
5.5.20.0270.06020.14
5.5.10.0070.07319.95
5.5.00.0200.06320.03
5.4.450.0030.09319.49
5.4.440.0130.04719.27
5.4.430.0070.04319.36
5.4.420.0100.07319.56
5.4.410.0030.04019.33
5.4.400.0100.07319.13
5.4.390.0070.03719.04
5.4.380.0130.02719.03
5.4.370.0070.07719.04
5.4.360.0070.08018.96
5.4.350.0030.08019.05
5.4.340.0070.07318.95
5.4.320.0170.03718.91
5.4.310.0070.04019.03
5.4.300.0130.07318.90
5.4.290.0000.08019.21
5.4.280.0100.07719.18
5.4.270.0100.05019.04
5.4.260.0100.07719.02
5.4.250.0030.08719.22
5.4.240.0230.06318.94
5.4.230.0130.06718.84
5.4.220.0000.09019.02
5.4.210.0130.06719.12
5.4.200.0170.06719.21
5.4.190.0030.08018.84
5.4.180.0130.05718.89
5.4.170.0070.08019.22
5.4.160.0200.05018.85
5.4.150.0100.07319.10
5.4.140.0070.05716.48
5.4.130.0000.06716.38
5.4.120.0130.06316.46
5.4.110.0070.06716.45
5.4.100.0070.04016.40
5.4.90.0030.06716.44
5.4.80.0170.06016.30
5.4.70.0170.05016.36
5.4.60.0130.03716.32
5.4.50.0170.03016.24
5.4.40.0070.07316.42
5.4.30.0130.03716.39
5.4.20.0030.04316.43
5.4.10.0070.03716.40
5.4.00.0030.08015.86
5.3.290.0130.05714.80
5.3.280.0000.07314.66
5.3.270.0200.06014.70
5.3.260.0100.07314.71
5.3.250.0070.04314.59
5.3.240.0070.06714.59
5.3.230.0100.07014.63
5.3.220.0000.05714.53
5.3.210.0100.06714.50
5.3.200.0270.03314.57
5.3.190.0130.07014.71
5.3.180.0130.06314.49
5.3.170.0070.08014.49
5.3.160.0070.07314.70
5.3.150.0030.07714.70
5.3.140.0030.07714.68
5.3.130.0030.05014.64
5.3.120.0070.08014.50
5.3.110.0000.05014.67
5.3.100.0030.03714.02
5.3.90.0100.06714.13
5.3.80.0100.07014.04
5.3.70.0030.06014.08
5.3.60.0100.07314.03
5.3.50.0130.06714.04
5.3.40.0100.04714.02
5.3.30.0100.07314.05
5.3.20.0070.05713.79
5.3.10.0030.07013.71
5.3.00.0030.08313.67
5.2.170.0100.05012.61
5.2.160.0100.05712.61
5.2.150.0030.04312.61
5.2.140.0030.06312.61
5.2.130.0070.05312.61
5.2.120.0100.02712.61
5.2.110.0000.05312.61
5.2.100.0100.05712.61
5.2.90.0030.06012.61
5.2.80.0000.06312.61
5.2.70.0100.05712.61
5.2.60.0030.05312.61
5.2.50.0100.05712.61
5.2.40.0100.05012.61
5.2.30.0000.05012.61
5.2.20.0030.04012.61
5.2.10.0100.04012.61
5.2.00.0000.04012.61
5.1.60.0000.05712.61
5.1.50.0070.04312.61
5.1.40.0100.03312.61
5.1.30.0100.05012.61
5.1.20.0030.03312.61
5.1.10.0100.03712.61
5.1.00.0070.04712.61
5.0.50.0100.03712.61
5.0.40.0030.02712.61
5.0.30.0000.05312.61
5.0.20.0000.02312.61
5.0.10.0070.04012.61
5.0.00.0030.06012.61
4.4.90.0030.03012.61
4.4.80.0030.03712.61
4.4.70.0070.03012.61
4.4.60.0070.03312.61
4.4.50.0000.04012.61
4.4.40.0030.04012.61
4.4.30.0030.01312.61
4.4.20.0100.03012.61
4.4.10.0030.03012.61
4.4.00.0000.03012.61
4.3.110.0000.02012.61
4.3.100.0070.03012.61
4.3.90.0070.01312.61
4.3.80.0100.04712.61
4.3.70.0030.03012.61
4.3.60.0000.03712.61
4.3.50.0070.02712.61
4.3.40.0030.05012.61
4.3.30.0070.02712.61
4.3.20.0000.02712.61
4.3.10.0000.02012.61
4.3.00.0030.02712.61

preferences:
38.82 ms | 400 KiB | 5 Q