3v4l.org

run code in 300+ PHP versions simultaneously
<?php function user_exception_handler_02(Throwable $ex) { restore_exception_handler(); throw new RuntimeException("Not able to handle, throwing another exception from handler"); echo "Should never see this"; } function throw_it() { throw new RuntimeException('Expected unexpected happened'); } function call_throw_it() { throw_it(); } set_exception_handler('user_exception_handler_02'); call_throw_it();

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.120.0240.01649.03
8.4.110.0320.01950.75
8.4.100.0310.01746.13
8.4.90.0310.01947.04
8.4.80.0370.02545.90
8.4.70.0290.01346.22
8.4.60.0200.01147.32
8.4.50.0300.02346.46
8.4.40.0490.01346.83
8.4.30.0250.02247.27
8.4.20.0270.02748.19
8.4.10.0230.01047.94
8.3.250.0310.01747.13
8.3.240.0420.01344.73
8.3.230.0460.02045.00
8.3.220.0330.02045.45
8.3.210.0350.01245.13
8.3.200.0480.01644.89
8.3.190.0190.01444.77
8.3.180.0240.01044.92
8.3.170.0220.01648.48
8.3.160.0300.04145.62
8.3.150.0320.02645.55
8.3.140.0100.02648.62
8.3.130.0310.02045.04
8.3.120.0320.02247.15
8.3.110.0360.02046.84
8.3.100.0270.00744.99
8.3.90.0230.00747.67
8.3.80.0230.01945.00
8.3.70.0530.02345.12
8.3.60.0700.01345.18
8.3.50.0590.02344.60
8.3.40.0120.00925.92
8.3.30.0100.01425.92
8.3.20.0170.00725.92
8.3.10.0090.01225.92
8.3.00.0200.00325.92
8.2.290.0090.01120.48
8.2.280.0130.00518.38
8.2.270.0110.00717.31
8.2.260.0110.00718.36
8.2.250.0000.00816.59
8.2.240.0090.00018.77
8.2.230.0060.00322.58
8.2.220.0050.00537.54
8.2.210.0040.00426.77
8.2.200.0030.00616.75
8.2.190.0120.00616.88
8.2.180.0050.01525.92
8.2.170.0090.01225.92
8.2.160.0060.01425.92
8.2.150.0140.00725.92
8.2.140.0110.01125.92
8.2.130.0120.00925.92
8.2.120.0170.00325.92
8.2.110.0090.00925.92
8.2.100.0130.00625.92
8.2.90.0100.01025.92
8.2.80.0140.00725.92
8.2.70.0130.00625.92
8.2.60.0210.00025.92
8.2.50.0090.00925.92
8.2.40.0170.00325.92
8.2.30.0100.01025.92
8.2.20.0090.01225.92
8.2.10.0150.00625.92
8.2.00.0300.00325.92
8.1.330.0100.00916.52
8.1.320.0050.00317.59
8.1.310.0070.01016.36
8.1.300.0040.00418.30
8.1.290.0030.00630.84
8.1.280.0130.00825.92
8.1.270.0330.00325.92
8.1.260.0290.00025.92
8.1.250.0340.00325.92
8.1.240.0170.01025.92
8.1.230.0180.01125.92
8.1.220.0210.00625.92
8.1.210.0230.00525.92
8.1.200.0270.00025.92
8.1.190.0180.01125.92
8.1.180.0210.01025.92
8.1.170.0230.00025.92
8.1.160.0200.01025.92
8.1.150.0160.01325.92
8.1.140.0240.00325.92
8.1.130.0230.00625.92
8.1.120.0230.00425.92
8.1.110.0200.00725.92
8.1.100.0220.00625.92
8.1.90.0250.00425.92
8.1.80.0230.00325.92
8.1.70.0240.00725.92
8.1.60.0180.01225.92
8.1.50.0250.00425.92
8.1.40.0230.00325.92
8.1.30.0220.00625.92
8.1.20.0270.00325.92
8.1.10.0260.00425.92
8.1.00.0190.01325.92

preferences:
55 ms | 403 KiB | 5 Q