3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ThrowExceptions extends Exception { public static function alreadySent(string $name) { return new static("The campaign {$name} is already sent"); } } class TryThrow { public static function doThrow () { throw ThrowExceptions::alreadySent("Example"); } } TryThrow::doThrow();

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.5.10.0140.00619.07
8.5.00.0110.01022.05
8.4.150.0070.00716.93
8.4.140.0160.00417.72
8.4.130.0140.00618.15
8.4.120.0120.00820.64
8.4.110.0140.00618.89
8.4.100.0130.00718.07
8.4.90.0150.00617.69
8.4.80.0080.00621.38
8.4.70.0140.00717.94
8.4.60.0060.00220.05
8.4.50.0140.00717.89
8.4.40.0160.00317.93
8.4.30.0050.00318.47
8.4.20.0130.00718.17
8.4.10.0130.00719.61
8.3.280.0080.00316.17
8.3.270.0080.01116.75
8.3.260.0100.01016.75
8.3.250.0090.01018.82
8.3.240.0120.00716.65
8.3.230.0110.00816.93
8.3.220.0100.00819.00
8.3.210.0130.00816.61
8.3.200.0150.01016.83
8.3.190.0120.00616.82
8.3.180.0080.01316.76
8.3.170.0040.00417.25
8.3.160.0090.00918.55
8.3.150.0130.00618.73
8.3.140.0040.00418.59
8.3.130.0030.00616.75
8.3.120.0110.00318.77
8.3.110.0100.00616.84
8.3.100.0070.00420.28
8.3.90.0070.01126.77
8.3.80.0040.00416.88
8.3.70.0070.00716.63
8.3.60.0150.00318.28
8.3.50.0070.00923.56
8.3.40.0140.00418.78
8.3.30.0070.00718.81
8.3.20.0040.00420.89
8.3.10.0040.00420.34
8.3.00.0040.00420.82
8.2.290.0120.00620.64
8.2.280.0130.00516.72
8.2.270.0110.00418.87
8.2.260.0000.00818.90
8.2.250.0060.00616.52
8.2.240.0130.00318.58
8.2.230.0160.00320.94
8.2.220.0040.00424.06
8.2.210.0070.01126.77
8.2.200.0080.00016.50
8.2.190.0190.00316.58
8.2.180.0200.00016.63
8.2.170.0110.00422.96
8.2.160.0110.01120.38
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0080.00026.16
8.2.110.0090.00022.07
8.2.100.0090.00317.91
8.2.90.0080.00017.63
8.2.80.0000.00818.86
8.2.70.0090.00017.93
8.2.60.0030.00518.16
8.2.50.0050.00319.34
8.2.40.0000.00821.09
8.2.30.0000.00819.30
8.2.20.0050.00317.98
8.2.10.0030.00519.15
8.2.00.0040.00419.18
8.1.330.0130.00616.45
8.1.320.0120.00716.31
8.1.310.0080.00016.41
8.1.300.0120.00316.14
8.1.290.0030.01030.84
8.1.280.0070.00725.92
8.1.270.0040.00422.19
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00624.00
8.1.230.0040.00720.91
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.00917.23
8.1.190.0040.00417.23
8.1.180.0020.00518.88
8.1.170.0030.00518.61
8.1.160.0040.00418.88
8.1.150.0000.00818.82
8.1.140.0000.00718.73
8.1.130.0000.00720.10
8.1.120.0000.00717.41
8.1.110.0080.00017.40
8.1.100.0040.00417.29
8.1.90.0000.00717.36
8.1.80.0000.00717.45
8.1.70.0030.00317.27
8.1.60.0050.00317.42
8.1.50.0040.00417.41
8.1.40.0000.00817.40
8.1.30.0040.00417.48
8.1.20.0030.00617.58
8.1.10.0000.00817.55
8.1.00.0030.00617.46
8.0.300.0050.00318.77
8.0.290.0060.00316.88
8.0.280.0070.00018.44
8.0.270.0030.00316.89
8.0.260.0060.00020.06
8.0.250.0000.00717.00
8.0.240.0070.00017.04
8.0.230.0030.00316.90
8.0.220.0030.00716.96
8.0.210.0070.00016.91
8.0.200.0040.00417.03
8.0.190.0040.00416.99
8.0.180.0000.00716.86
8.0.170.0040.00416.97
8.0.160.0050.00216.94
8.0.150.0030.00316.82
8.0.140.0000.00716.91
8.0.130.0060.00013.39
8.0.120.0040.00416.79
8.0.110.0000.00716.86
8.0.100.0070.00016.85
8.0.90.0030.00617.00
8.0.80.0060.01216.90
8.0.70.0000.00716.83
8.0.60.0000.00716.96
8.0.50.0040.00416.83
8.0.30.0150.00917.34
8.0.20.0130.00816.89
8.0.10.0060.00316.96
8.0.00.0070.01416.83
7.4.330.0050.00015.55
7.4.320.0060.00016.42
7.4.300.0000.00616.46
7.4.290.0000.00816.50
7.4.280.0030.00516.53
7.4.270.0050.00316.44
7.4.260.0030.00313.20
7.4.250.0040.00416.30
7.4.240.0050.00216.46
7.4.230.0030.00316.57
7.4.220.0040.00416.49
7.4.210.0070.01016.48
7.4.200.0000.00716.35
7.4.130.0080.01016.56
7.4.120.0070.01316.46
7.4.110.0090.01016.55
7.4.100.0100.00716.58
7.4.90.0130.00316.42
7.4.80.0110.01119.39
7.4.70.0070.01016.50
7.4.60.0170.00716.50
7.4.50.0000.01416.45
7.4.40.0030.01516.38
7.4.30.0110.00916.39
7.4.20.0120.00816.32
7.4.10.0100.01016.32
7.4.00.0080.01216.64
7.3.330.0070.00016.29
7.3.320.0000.00513.42
7.3.310.0060.00316.41
7.3.300.0000.00716.25
7.3.290.0100.00616.42
7.3.280.0070.00816.36
7.3.260.0120.01216.69
7.3.240.0070.01116.52
7.3.230.0070.01016.41
7.3.210.0110.00716.54
7.3.200.0070.01016.64
7.3.190.0030.01716.71
7.3.180.0120.00416.30
7.3.170.0080.00816.54
7.3.160.0090.01216.38
7.3.150.0110.01016.40
7.3.140.0110.00716.57
7.3.130.0100.00816.48
7.3.120.0070.01116.43
7.3.110.0130.00716.48
7.3.100.0100.00816.31
7.3.90.0090.01116.44
7.3.80.0060.01316.39
7.3.70.0080.01116.35
7.3.60.0110.00916.31
7.3.50.0120.00916.35
7.3.40.0070.01316.38
7.3.30.0110.00916.40
7.3.20.0090.01316.33
7.3.10.0080.01416.42
7.3.00.0100.01016.42
7.2.330.0100.00716.73
7.2.320.0080.01116.69
7.2.310.0040.01216.55
7.2.300.0170.00316.68
7.2.290.0100.00716.59
7.2.280.0070.01216.59
7.2.270.0110.00816.55
7.2.260.0050.01316.54
7.2.250.0120.00816.52
7.2.240.0120.00716.61
7.2.230.0120.00716.44
7.2.220.0090.01216.60
7.2.210.0100.00916.51
7.2.200.0120.00816.41
7.2.190.0090.01116.49
7.2.180.0090.00916.48
7.2.170.0090.01016.51
7.2.160.0110.01016.44
7.2.150.0120.01016.45
7.2.140.0110.00816.56
7.2.130.0150.00816.56
7.2.120.0080.01316.47
7.2.110.0080.01316.61
7.2.100.0110.00816.58
7.2.90.0090.01016.51
7.2.80.0070.01116.57
7.2.70.0120.00816.59
7.2.60.0120.00616.52
7.2.50.0090.01016.60
7.2.40.0120.00716.59
7.2.30.0110.01016.53
7.2.20.0100.01116.50
7.2.10.0120.00816.50
7.2.00.0130.00616.51

preferences:
191.21 ms | 403 KiB | 5 Q