3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { throw new \UnexpectedValueException(); } catch (\UnexpectedValueException() $exception) { try { // throw new \UnexpectedValueException('user deleted'); throw new \InvalidArgumentException(); } catch (\UnexpectedValueException() $exception) { throw new \UnexpectedValueException('user not found'); } } catch (\InvalidArgumentException $exception) { throw new \InvalidArgumentException('too many users found'); }

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)
5.4.340.0370.05318.83
5.4.320.0370.05019.14
5.4.310.0400.07318.84
5.4.300.0470.07018.94
5.4.290.0400.06718.86
5.4.280.0470.06019.22
5.4.270.0430.04719.15
5.4.260.0470.06019.03
5.4.250.0500.07018.83
5.4.240.0500.04019.30
5.4.230.0500.06718.97
5.4.220.0470.07019.23
5.4.210.0530.06019.18
5.4.200.0500.05319.04
5.4.190.0670.05019.18
5.4.180.0570.05318.94
5.4.170.0530.04718.93
5.4.160.0400.06719.20
5.4.150.0470.03319.07
5.4.140.0530.06316.36
5.4.130.0430.04716.31
5.4.120.0470.04016.48
5.4.110.0400.03716.54
5.4.100.0430.04016.56
5.4.90.0330.03716.46
5.4.80.0300.04716.56
5.4.70.0330.03716.29
5.4.60.0530.03716.18
5.4.50.0370.03716.51
5.4.40.0530.05716.37
5.4.30.0570.05016.55
5.4.20.0470.06016.54
5.4.10.0500.06016.42
5.4.00.0470.05315.86
5.3.290.0470.04314.51
5.3.280.0430.04314.58
5.3.270.0430.07314.54
5.3.260.0530.06714.70
5.3.250.0400.05014.55
5.3.240.0530.05714.46
5.3.230.0400.03714.55
5.3.220.0430.06714.48
5.3.210.0370.04014.43
5.3.200.0370.04714.55
5.3.190.0330.04714.66
5.3.180.0430.06314.41
5.3.170.0330.04314.61
5.3.160.0330.07014.40
5.3.150.0300.05314.52
5.3.140.0370.05014.57
5.3.130.0430.04314.50
5.3.120.0330.04014.56
5.3.110.0400.05714.40
5.3.100.0400.03313.91
5.3.90.0430.03713.85
5.3.80.0430.04313.81
5.3.70.0330.04013.84
5.3.60.0330.04013.83
5.3.50.0500.06313.88
5.3.40.0470.06013.82
5.3.30.0370.04713.85
5.3.20.0470.06013.64
5.3.10.0500.06013.44
5.3.00.0530.03713.58
5.2.170.0400.05312.49
5.2.160.0430.05312.49
5.2.150.0430.05712.49
5.2.140.0470.04312.49
5.2.130.0530.04012.49
5.2.120.0300.03012.49
5.2.110.0300.03712.49
5.2.100.0400.03012.49
5.2.90.0370.04012.49
5.2.80.0400.02312.49
5.2.70.0400.03312.49
5.2.60.0400.04712.49
5.2.50.0370.03712.49
5.2.40.0330.03312.49
5.2.30.0370.03012.49
5.2.20.0170.03712.49
5.2.10.0300.04312.49
5.2.00.0200.03312.49
5.1.60.0300.01712.49
5.1.50.0370.04712.49
5.1.40.0400.04012.49
5.1.30.0330.03012.49
5.1.20.0300.04712.49
5.1.10.0370.04712.49
5.1.00.0400.04712.49
5.0.50.0300.03012.49
5.0.40.0130.04012.49
5.0.30.0170.06012.49
5.0.20.0200.02312.49
5.0.10.0130.04712.49
5.0.00.0200.05712.49
4.4.90.0130.03312.49
4.4.80.0230.02712.49
4.4.70.0200.02712.49
4.4.60.0130.02012.49
4.4.50.0170.02712.49
4.4.40.0270.04012.49
4.4.30.0230.01712.49
4.4.20.0130.01712.49
4.4.10.0130.02012.49
4.4.00.0130.03712.49
4.3.110.0200.01012.49
4.3.100.0130.03012.49
4.3.90.0130.01712.49
4.3.80.0170.05012.49
4.3.70.0130.01712.49
4.3.60.0170.01312.49
4.3.50.0130.03012.49
4.3.40.0230.04312.49
4.3.30.0070.03012.49
4.3.20.0070.02312.49
4.3.10.0070.02012.49
4.3.00.0130.02712.49

preferences:
139.32 ms | 1398 KiB | 7 Q