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.0110.00718.27
8.3.50.0080.00818.30
8.3.40.0110.00418.76
8.3.30.0000.01518.82
8.3.20.0050.00320.14
8.3.10.0040.00423.61
8.3.00.0000.00819.85
8.2.180.0180.00418.53
8.2.170.0150.00022.96
8.2.160.0130.00020.43
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00419.89
8.2.110.0070.00420.38
8.2.100.0030.01019.51
8.2.90.0050.00318.03
8.2.80.0050.00320.45
8.2.70.0000.00917.93
8.2.60.0040.00417.80
8.2.50.0030.00718.10
8.2.40.0040.00420.36
8.2.30.0030.00619.25
8.2.20.0040.00417.93
8.2.10.0040.00418.00
8.2.00.0040.00418.24
8.1.280.0100.00725.92
8.1.270.0040.00420.05
8.1.260.0080.00026.35
8.1.250.0060.01328.09
8.1.240.0090.00023.80
8.1.230.0070.00320.86
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0030.00517.35
8.1.190.0030.00618.98
8.1.180.0030.00618.10
8.1.170.0080.00018.59
8.1.160.0040.00418.73
8.1.150.0050.00220.32
8.1.140.0040.00417.64
8.1.130.0000.00719.07
8.1.120.0050.00217.41
8.1.110.0070.00017.29
8.1.100.0050.00217.31
8.1.90.0000.00817.33
8.1.80.0040.00417.36
8.1.70.0030.00717.43
8.1.60.0040.00417.59
8.1.50.0000.00817.51
8.1.40.0080.00017.42
8.1.30.0060.00317.65
8.1.20.0050.00317.56
8.1.10.0040.00417.53
8.1.00.0000.00817.51
8.0.300.0030.00319.95
8.0.290.0060.00316.75
8.0.280.0050.00318.42
8.0.270.0000.00717.20
8.0.260.0050.00216.74
8.0.250.0070.00416.93
8.0.240.0030.00316.89
8.0.230.0030.00316.95
8.0.220.0040.00316.94
8.0.210.0070.00016.90
8.0.200.0030.00316.94
8.0.190.0000.00816.84
8.0.180.0030.00516.82
8.0.170.0000.01116.93
8.0.160.0050.00316.88
8.0.150.0000.00716.85
8.0.140.0080.00016.84
8.0.130.0030.00313.32
8.0.120.0000.00716.76
8.0.110.0030.00516.73
8.0.100.0050.00216.94
8.0.90.0070.00016.76
8.0.80.0030.01216.86
8.0.70.0070.00016.94
8.0.60.0000.00716.80
8.0.50.0070.00016.89
8.0.30.0110.00617.00
8.0.20.0110.00917.40
8.0.10.0000.00717.02
8.0.00.0130.00516.70
7.4.330.0020.00415.55
7.4.320.0000.00616.39
7.4.300.0040.00416.52
7.4.290.0030.00316.61
7.4.280.0000.00716.45
7.4.270.0000.00716.52
7.4.260.0030.00316.40
7.4.250.0000.00716.46
7.4.240.0030.00316.60
7.4.230.0070.00016.54
7.4.220.0040.00416.59
7.4.210.0070.00816.62
7.4.200.0030.00316.54
7.4.160.0030.01316.55
7.4.150.0040.01417.40
7.4.140.0080.01017.86
7.4.130.0110.00716.55
7.4.120.0080.01016.56
7.4.110.0110.00716.45
7.4.100.0030.01416.43
7.4.90.0130.00316.53
7.4.80.0130.00419.39
7.4.70.0110.00816.42
7.4.60.0100.00716.46
7.4.50.0030.01216.41
7.4.40.0100.00616.40
7.4.00.0150.00414.87
7.3.330.0020.00213.31
7.3.320.0030.00313.34
7.3.310.0000.00816.40
7.3.300.0000.00716.25
7.3.290.0050.00316.28
7.3.280.0120.00316.35
7.3.270.0000.01717.40
7.3.260.0050.01416.52
7.3.250.0110.00516.48
7.3.240.0100.00916.46
7.3.230.0140.00316.54
7.3.210.0040.01216.51
7.3.200.0120.00916.25
7.3.190.0030.01316.46
7.3.180.0120.00416.37
7.3.170.0060.00916.41
7.3.160.0140.00416.50
7.2.330.0030.01516.75
7.2.320.0040.01216.66
7.2.310.0060.01016.30
7.2.300.0160.00616.61
7.2.290.0120.00916.45
7.2.60.0080.00816.94
7.2.20.0600.01217.83
7.2.10.0400.01017.69
7.2.00.0380.00317.85
7.1.200.0070.00715.70
7.1.140.0340.01216.67
7.1.130.0420.01516.64
7.1.120.0250.01116.38
7.1.110.0220.00915.82
7.1.100.0280.00615.88
7.1.90.0420.00315.92
7.1.80.0320.00615.98
7.1.70.0390.00715.08
7.1.60.0450.01933.17
7.1.50.0370.01332.93
7.1.40.0420.01032.33
7.1.30.0380.00832.39
7.1.20.0290.01532.64
7.1.10.0210.00914.56
7.1.00.0220.01314.62

preferences:
58.03 ms | 401 KiB | 5 Q