3v4l.org

run code in 300+ PHP versions simultaneously
<?php function handle_exception( $arg ) { echo "exception callback" . PHP_EOL; } set_exception_handler( 'handle_exception' ); function bar( $arg ) { throw new Exception( 'fail here' ); } ob_start( 'bar' ); exit;

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.0120.00724.02
8.4.110.0050.00519.09
8.4.100.0110.00918.65
8.4.90.0110.00820.91
8.4.80.0130.00718.68
8.4.70.0080.00818.20
8.4.60.0090.01218.61
8.4.50.0110.00718.50
8.4.40.0060.00317.86
8.4.30.0060.01323.85
8.4.20.0100.01319.70
8.4.10.0040.00419.53
8.3.250.0100.01018.93
8.3.240.0130.00618.77
8.3.230.0130.00616.61
8.3.220.0120.00719.07
8.3.210.0110.00722.47
8.3.200.0030.00616.46
8.3.190.0030.00517.22
8.3.180.0100.00918.87
8.3.170.0070.01116.95
8.3.160.0120.00618.46
8.3.150.0080.00017.26
8.3.140.0090.00618.46
8.3.130.0120.00916.82
8.3.120.0390.00416.63
8.3.110.0320.01016.44
8.3.100.0390.00716.75
8.3.90.0200.00416.69
8.3.80.0220.00416.41
8.3.70.0270.00316.38
8.3.60.0260.00716.45
8.3.50.0310.00316.34
8.3.40.0260.00417.41
8.3.30.0240.01417.56
8.3.20.0340.00917.21
8.3.10.0180.00717.34
8.3.00.0040.01117.48
8.2.290.0100.00920.73
8.2.280.0080.00720.21
8.2.270.0150.00416.50
8.2.260.0070.01117.09
8.2.250.0220.00018.69
8.2.240.0300.01016.43
8.2.230.0370.00316.45
8.2.220.0280.01216.74
8.2.210.0330.00716.31
8.2.200.0340.00716.26
8.2.190.0320.01116.33
8.2.180.0320.00716.45
8.2.170.0300.01517.20
8.2.160.0320.00617.58
8.2.150.0410.00617.23
8.2.140.0360.00617.32
8.2.130.0310.00917.13
8.2.120.0330.00717.46
8.2.110.0350.00517.36
8.2.100.0220.01617.56
8.2.90.0370.00617.64
8.2.80.0280.01217.32
8.2.70.0320.01117.07
8.2.60.0300.00617.45
8.2.50.0320.00017.50
8.2.40.0330.00917.53
8.2.30.0320.00417.36
8.2.20.0240.00417.48
8.2.10.0160.00317.37
8.2.00.0280.00317.46
8.1.330.0130.00521.64
8.1.320.0130.00616.01
8.1.310.0000.01516.53
8.1.300.0260.00815.83
8.1.290.0240.00016.11
8.1.280.0170.00916.18
8.1.270.0190.00017.24
8.1.260.0150.00517.28
8.1.250.0160.00417.09
8.1.240.0060.01217.37
8.1.230.0380.00317.52
8.1.220.0360.00417.34
8.1.210.0290.00917.14
8.1.200.0290.00717.16
8.1.190.0280.00817.14
8.1.180.0370.00017.33
8.1.170.0300.00817.14
8.1.160.0310.00317.25
8.1.150.0220.00317.21
8.1.140.0100.00717.21
8.1.130.0210.00916.92
8.1.120.0220.01117.08
8.1.110.0220.00917.25
8.1.100.0230.00617.06
8.1.90.0220.00817.35
8.1.80.0320.00417.00
8.1.70.0250.01217.17
8.1.60.0340.00717.01
8.1.50.0290.01117.48
8.1.40.0330.00917.37
8.1.30.0410.00017.29
8.1.20.0370.01117.25
8.1.10.0330.00417.11
8.1.00.0380.01016.94

preferences:
27.8 ms | 403 KiB | 5 Q