3v4l.org

run code in 300+ PHP versions simultaneously
<?php function myErrorHandler($errno, $errstr, $errfile, $errline) { var_dump('got in'); } set_error_handler("myErrorHandler"); $bla = new stdClass; try { $bla->method(); } catch (\Throwable $e) { echo get_class($e); }

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.60.0120.00316.50
8.3.50.0140.00722.05
8.3.40.0110.00618.71
8.3.30.0110.00418.72
8.3.20.0070.00020.17
8.3.10.0040.00421.82
8.3.00.0070.00021.77
8.2.180.0070.00718.41
8.2.170.0030.01022.96
8.2.160.0040.01122.04
8.2.150.0110.00724.18
8.2.140.0000.00824.66
8.2.130.0040.00420.73
8.2.120.0070.00026.35
8.2.110.0030.00619.34
8.2.100.0000.01117.92
8.2.90.0040.00419.08
8.2.80.0050.00317.97
8.2.70.0090.00017.75
8.2.60.0030.00517.91
8.2.50.0000.00818.09
8.2.40.0030.00620.61
8.2.30.0040.00419.30
8.2.20.0030.00617.66
8.2.10.0020.00517.92
8.2.00.0040.00418.04
8.1.280.0170.00325.92
8.1.270.0090.00922.25
8.1.260.0090.00028.09
8.1.250.0000.00828.09
8.1.240.0100.00022.17
8.1.230.0040.00717.64
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0080.00017.22
8.1.190.0050.00317.00
8.1.180.0050.00218.10
8.1.170.0040.00418.50
8.1.160.0070.00020.69
8.1.150.0040.00418.82
8.1.140.0030.00519.41
8.1.130.0030.00317.66
8.1.120.0040.00417.46
8.1.110.0040.00417.39
8.1.100.0040.00417.36
8.1.90.0050.00317.29
8.1.80.0050.00217.27
8.1.70.0000.00717.43
8.1.60.0000.00817.49
8.1.50.0030.00617.51
8.1.40.0000.01117.40
8.1.30.0070.00017.59
8.1.20.0030.00617.57
8.1.10.0040.00417.44
8.1.00.0000.00717.49
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0040.00418.36
8.0.270.0030.00317.26
8.0.260.0040.00417.25
8.0.250.0030.00316.90
8.0.240.0030.00317.02
8.0.230.0030.00316.89
8.0.220.0000.00816.92
8.0.210.0000.00816.98
8.0.200.0060.00016.85
8.0.190.0040.00416.85
8.0.180.0050.00316.84
8.0.170.0020.00516.84
8.0.160.0070.00016.86
8.0.150.0000.00716.92
8.0.140.0050.00316.84
8.0.130.0000.00613.24
8.0.120.0030.00516.82
8.0.110.0000.00816.88
8.0.100.0040.00416.86
8.0.90.0070.00016.75
8.0.80.0120.00916.86
8.0.70.0040.00416.66
8.0.60.0000.00716.91
8.0.50.0050.00316.78
8.0.30.0080.01017.09
8.0.20.0080.01117.40
8.0.10.0000.00716.89
8.0.00.0100.00716.76
7.4.330.0000.00516.67
7.4.320.0030.00316.50
7.4.300.0040.00416.57
7.4.290.0030.00316.40
7.4.280.0040.00416.62
7.4.270.0080.00016.62
7.4.260.0110.00016.53
7.4.250.0040.00416.35
7.4.240.0040.00416.57
7.4.230.0040.00416.50
7.4.220.0070.01116.59
7.4.210.0070.00716.54
7.4.200.0070.00016.34
7.4.160.0150.00016.46
7.4.150.0100.01017.40
7.4.140.0050.01217.86
7.4.130.0080.01116.50
7.4.120.0100.00816.75
7.4.110.0090.00916.44
7.4.100.0110.00616.66
7.4.90.0030.01416.38
7.4.80.0150.00319.39
7.4.70.0150.00216.64
7.4.60.0070.01016.68
7.4.50.0080.00316.52
7.4.40.0160.00616.52
7.4.30.0090.00916.57
7.4.00.0060.00815.02
7.3.330.0000.00513.30
7.3.320.0000.00513.29
7.3.310.0030.00316.21
7.3.300.0030.00316.27
7.3.290.0110.00916.36
7.3.280.0100.00816.38
7.3.270.0140.00317.40
7.3.260.0100.01016.27
7.3.250.0120.00616.42
7.3.240.0130.00316.34
7.3.230.0030.01516.60
7.3.210.0120.00916.21
7.3.200.0070.01019.39
7.3.190.0030.01316.20
7.3.180.0070.01016.57
7.3.170.0150.00616.41
7.3.160.0090.00616.36
7.3.120.0090.00514.82
7.3.110.0050.00614.86
7.3.100.0040.00715.06
7.3.90.0020.00914.66
7.3.80.0050.00514.84
7.3.70.0030.00814.82
7.3.60.0040.00614.71
7.3.50.0040.00614.92
7.3.40.0050.00714.89
7.3.30.0010.01214.83
7.3.20.0090.00216.74
7.3.10.0030.00716.68
7.3.00.0070.00516.79
7.2.330.0110.00816.60
7.2.320.0070.01116.71
7.2.310.0130.00716.87
7.2.300.0000.01616.72
7.2.290.0130.00316.61
7.2.250.0000.01514.99
7.2.240.0040.01115.08
7.2.230.0040.01115.21
7.2.220.0080.00614.91
7.2.210.0050.00815.21
7.2.200.0020.00915.05
7.2.190.0070.00614.85
7.2.180.0050.00715.11
7.2.170.0080.00614.97
7.2.110.0160.00616.48
7.2.60.0030.01017.06
7.2.00.0000.00919.38
7.1.330.0050.00815.58
7.1.320.0050.00715.71
7.1.310.0050.00715.77
7.1.300.0020.01115.65
7.1.290.0080.00315.86
7.1.280.0040.00715.74
7.1.270.0020.01215.74
7.1.260.0060.00615.74
7.1.200.0070.00715.49
7.1.100.0000.01217.87
7.1.70.0050.00217.27
7.1.60.0170.00719.40
7.1.50.0070.01416.96
7.1.00.0070.07022.27
7.0.200.0040.00416.91
7.0.60.0030.04021.64
7.0.50.0030.04717.96
7.0.40.0130.07720.14
7.0.30.0230.05320.21
7.0.20.0300.08020.22
7.0.10.0130.05320.08
7.0.00.0100.09020.25
5.6.280.0000.04721.07
5.6.210.0100.06320.57
5.6.200.0030.04718.18
5.6.190.0030.08720.62
5.6.180.0270.07720.46
5.6.170.0200.08020.45
5.6.160.0070.04020.46
5.6.150.0030.04318.15
5.6.140.0030.03718.12
5.6.130.0070.05018.19
5.6.120.0070.08321.12
5.6.110.0100.06020.98
5.6.100.0100.07321.01
5.6.90.0030.04020.98
5.6.80.0070.06720.54
5.5.350.0200.07320.43
5.5.340.0130.07317.98
5.5.330.0130.06020.31
5.5.320.0270.03320.34
5.5.310.0270.05320.34
5.5.300.0100.04018.08
5.5.290.0100.08018.06
5.5.280.0030.08720.78
5.5.270.0130.04320.73
5.5.260.0130.06720.77
5.5.250.0130.03320.71
5.5.240.0130.04020.15

preferences:
56.44 ms | 401 KiB | 5 Q