3v4l.org

run code in 300+ PHP versions simultaneously
<?php class myexception extends Exception { public function __construct($message, Throwable $previous = null) { parent::__construct($message, 0, $previous); } } $standardException = new Exception('standard Exception'); $myexception = new myexception('first without throwable'); $myexception = new myexception('second with throwable', $standardException);

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.0150.00418.55
8.3.50.0110.00718.16
8.3.40.0150.00018.53
8.3.30.0110.00418.76
8.3.20.0040.00420.38
8.3.10.0040.00423.48
8.3.00.0080.00019.79
8.2.180.0180.00318.21
8.2.170.0140.00022.96
8.2.160.0040.01120.35
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0060.00320.48
8.2.120.0000.00726.35
8.2.110.0000.00919.25
8.2.100.0100.00319.51
8.2.90.0000.00817.65
8.2.80.0070.00020.44
8.2.70.0000.00918.04
8.2.60.0060.00317.93
8.2.50.0040.00718.10
8.2.40.0070.00020.77
8.2.30.0050.00319.05
8.2.20.0080.00018.06
8.2.10.0000.00818.06
8.2.00.0000.00718.20
8.1.280.0150.00325.92
8.1.270.0040.00420.24
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0100.00022.72
8.1.230.0060.00621.04
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0090.00019.12
8.1.180.0040.00418.10
8.1.170.0040.00418.54
8.1.160.0040.00418.93
8.1.150.0080.00020.26
8.1.140.0000.00717.63
8.1.130.0030.00319.04
8.1.120.0070.00017.46
8.1.110.0030.00517.24
8.1.100.0050.00317.42
8.1.90.0000.00917.38
8.1.80.0030.00517.43
8.1.70.0030.00617.36
8.1.60.0000.00917.50
8.1.50.0000.00717.48
8.1.40.0000.00717.51
8.1.30.0070.00317.64
8.1.20.0040.00417.70
8.1.10.0080.00017.46
8.1.00.0050.00517.41
8.0.300.0000.00820.11
8.0.290.0050.00316.63
8.0.280.0000.01018.40
8.0.270.0000.00817.07
8.0.260.0030.00616.74
8.0.250.0070.00016.81
8.0.240.0080.00016.75
8.0.230.0030.00316.87
8.0.220.0030.00616.86
8.0.210.0000.00716.73
8.0.200.0000.00616.71
8.0.190.0060.00316.87
8.0.180.0040.00416.86
8.0.170.0060.00616.77
8.0.160.0000.00816.88
8.0.150.0030.00416.86
8.0.140.0050.00316.71
8.0.130.0030.00313.17
8.0.120.0040.00416.79
8.0.110.0000.00716.88
8.0.100.0050.00316.70
8.0.90.0000.00716.68
8.0.80.0170.00416.84
8.0.70.0050.00316.80
8.0.60.0070.00016.64
8.0.50.0040.00416.87
8.0.30.0040.01416.97
8.0.20.0110.00817.40
8.0.10.0000.00716.83
8.0.00.0100.00816.65
7.4.330.0000.00615.55
7.4.320.0030.00316.45
7.4.300.0000.00716.59
7.4.290.0030.00316.53
7.4.280.0040.00416.44
7.4.270.0000.00716.50
7.4.260.0000.00716.47
7.4.250.0000.00816.56
7.4.240.0000.00816.61
7.4.230.0000.00816.49
7.4.220.0050.00316.39
7.4.210.0100.00516.50
7.4.200.0000.00616.47
7.4.160.0160.00416.44
7.4.150.0070.01117.40
7.4.140.0120.00717.86
7.4.130.0180.00716.26
7.4.120.0120.00916.40
7.4.110.0070.01016.48
7.4.100.0090.00616.38
7.4.90.0070.01316.47
7.4.80.0080.01019.39
7.4.70.0090.00916.49
7.4.60.0060.01216.45
7.4.50.0040.01116.45
7.4.40.0100.01016.64
7.4.00.0080.00814.90
7.3.330.0030.00313.10
7.3.320.0030.00313.32
7.3.310.0000.00716.27
7.3.300.0000.00716.16
7.3.290.0000.00716.16
7.3.280.0080.00816.20
7.3.270.0060.01017.40
7.3.260.0110.00916.22
7.3.250.0100.00816.32
7.3.240.0100.00716.37
7.3.230.0100.00716.31
7.3.210.0060.01016.27
7.3.200.0100.01016.62
7.3.190.0140.00316.17
7.3.180.0000.01516.19
7.3.170.0110.00416.36
7.3.160.0100.00616.30
7.2.330.0060.01216.40
7.2.320.0140.00716.70
7.2.310.0000.01716.59
7.2.300.0090.01316.71
7.2.290.0100.00716.32
7.2.60.0040.01216.69
7.2.20.0400.01017.78
7.2.10.0450.00717.50
7.2.00.0370.01717.58
7.1.200.0100.00315.40
7.1.140.0060.00916.68
7.1.130.0040.01216.26
7.1.120.0360.00916.31
7.1.110.0250.01215.63
7.1.100.0340.00416.02
7.1.90.0030.01115.82
7.1.80.0430.00715.63
7.1.70.0320.00615.34
7.1.60.0470.01933.25
7.1.50.0470.00632.78
7.1.40.0480.00332.40
7.1.30.0410.00932.59
7.1.20.0200.01732.84
7.1.10.0270.00814.50
7.1.00.0380.01014.78

preferences:
57.88 ms | 401 KiB | 5 Q