3v4l.org

run code in 300+ PHP versions simultaneously
<?php function expect_an_exception(Exception $e){} function expect_a_string(string $string){} expect_an_exception(new Exception('Division by zero.')); expect_a_string("hello");

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.10.0000.01617.43
8.3.140.0050.00317.25
8.3.130.0040.00418.41
8.3.120.0090.00020.91
8.3.110.0100.01020.94
8.3.100.0000.00824.06
8.3.90.0040.00426.77
8.3.80.0060.00316.50
8.3.70.0120.00616.58
8.3.60.0060.01318.31
8.3.50.0100.00418.21
8.3.40.0150.00018.81
8.3.30.0150.00018.63
8.3.20.0060.00320.69
8.3.10.0090.00023.48
8.3.00.0040.00423.48
8.2.250.0070.01318.42
8.2.240.0080.00017.13
8.2.230.0040.00422.58
8.2.220.0060.00337.54
8.2.210.0140.00426.77
8.2.200.0090.00316.50
8.2.190.0090.01316.63
8.2.180.0110.01118.09
8.2.170.0040.01118.82
8.2.160.0110.00322.96
8.2.150.0080.00024.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0070.00019.77
8.2.110.0090.00020.42
8.2.100.0030.00917.78
8.2.90.0060.00317.78
8.2.80.0030.00618.98
8.2.70.0000.00817.79
8.2.60.0030.00617.80
8.2.50.0000.00818.10
8.2.40.0030.00617.62
8.2.30.0040.00418.99
8.2.20.0040.00417.99
8.2.10.0080.00019.07
8.2.00.0070.00019.46
8.1.300.0130.00618.09
8.1.290.0060.00330.84
8.1.280.0060.00925.92
8.1.270.0050.00318.70
8.1.260.0030.00626.35
8.1.250.0070.00028.09
8.1.240.0090.00023.90
8.1.230.0070.00423.86
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0000.00917.10
8.1.190.0080.00017.22
8.1.180.0090.00018.10
8.1.170.0040.00417.62
8.1.160.0050.00218.66
8.1.150.0000.00718.77
8.1.140.0070.00022.05
8.1.130.0030.00719.96
8.1.120.0000.00717.38
8.1.110.0040.00417.23
8.1.100.0040.00417.32
8.1.90.0060.00317.21
8.1.80.0000.00717.33
8.1.70.0000.00717.29
8.1.60.0030.00617.50
8.1.50.0050.00317.34
8.1.40.0000.00817.50
8.1.30.0060.00317.59
8.1.20.0030.00617.58
8.1.10.0040.00617.42
8.1.00.0100.00017.26
8.0.300.0000.00720.09
8.0.290.0000.00816.75
8.0.280.0030.00318.30
8.0.270.0040.00417.23
8.0.260.0070.00018.44
8.0.250.0000.00616.98
8.0.240.0000.00716.91
8.0.230.0040.00416.97
8.0.220.0090.00016.80
8.0.210.0050.00216.75
8.0.200.0040.00416.90
8.0.190.0080.00016.97
8.0.180.0040.00416.91
8.0.170.0040.00416.88
8.0.160.0000.00716.86
8.0.150.0040.00416.81
8.0.140.0060.00316.79
8.0.130.0020.00615.07
8.0.120.0060.00316.82
8.0.110.0070.00316.79
8.0.100.0080.00216.78
8.0.90.0100.00216.79
8.0.80.0050.01316.80
8.0.70.0040.00816.82
8.0.60.0070.00316.81
8.0.50.0000.00916.79
8.0.30.0120.00416.84
8.0.20.0130.00217.08
8.0.10.0090.00316.86
8.0.00.0070.00716.66
7.4.330.0020.00216.73
7.4.320.0030.00316.47
7.4.300.0030.00316.45
7.4.290.0080.00016.44
7.4.280.0040.00416.32
7.4.270.0020.00516.38
7.4.260.0060.00416.40
7.4.250.0030.00616.44
7.4.240.0070.00316.42
7.4.230.0090.00616.34
7.4.220.0110.00216.35
7.4.210.0080.00716.44
7.4.200.0090.00416.51
7.4.190.0110.00816.50
7.4.180.0170.00316.42
7.4.160.0100.00616.44
7.4.150.0110.00816.35
7.4.140.0120.00917.59
7.4.130.0140.00516.34
7.4.120.0070.00716.28
7.4.110.0090.00616.33
7.4.100.0100.00616.43
7.4.90.0110.00316.38
7.4.80.0100.00417.79
7.4.70.0070.00716.33
7.4.60.0120.00216.34
7.4.50.0020.01216.39
7.4.40.0060.00616.25
7.4.30.0060.00616.25
7.4.20.0120.00416.32
7.4.10.0080.00416.16
7.4.00.0050.01015.30
7.3.330.0090.00314.64
7.3.320.0070.00514.74
7.3.310.0070.00716.18
7.3.300.0100.00216.20
7.3.290.0090.00316.14
7.3.280.0140.00516.27
7.3.270.0090.00916.27
7.3.260.0100.00916.31
7.3.250.0150.00416.07
7.3.240.0080.00916.33
7.3.230.0110.00616.32
7.3.220.0130.00515.97
7.3.210.0120.00516.16
7.3.200.0120.00816.14
7.3.190.0150.00516.33
7.3.180.0080.01016.27
7.3.170.0090.00916.07
7.3.160.0050.01316.18
7.3.150.0210.00016.18
7.3.140.0140.00716.09
7.3.130.0140.00415.93
7.3.120.0060.01015.15
7.3.110.0090.00615.13
7.3.100.0090.00515.29
7.3.90.0120.00515.25
7.3.80.0060.00814.92
7.3.70.0090.00815.18
7.3.60.0110.00315.23
7.3.50.0060.00814.85
7.3.40.0080.00915.07
7.3.30.0070.00714.98
7.3.20.0080.00516.15
7.3.10.0100.00516.08
7.3.00.0080.00716.23
7.2.340.0150.00316.04
7.2.330.0110.00816.38
7.2.320.0130.00416.38
7.2.310.0130.00816.31
7.2.300.0090.00916.40
7.2.290.0160.00316.12
7.2.280.0150.00416.21
7.2.270.0100.01016.07
7.2.260.0170.00216.02
7.2.250.0110.00715.53
7.2.240.0080.01015.38
7.2.230.0130.00315.15
7.2.220.0080.00715.27
7.2.210.0070.00915.17
7.2.200.0090.00815.37
7.2.190.0090.00515.17
7.2.180.0110.00415.08
7.2.170.0070.00615.17
7.2.160.0080.01115.21
7.2.150.0090.00916.19
7.2.140.0100.01016.05
7.2.130.0090.00616.29
7.2.120.0080.00816.29
7.2.110.0090.00516.33
7.2.100.0090.00816.32
7.2.90.0090.00916.25
7.2.80.0110.00616.29
7.2.70.0120.00716.23
7.2.60.0110.00616.32
7.2.50.0110.00716.28
7.2.40.0090.00716.12
7.2.30.0100.00616.35
7.2.20.0250.00716.35
7.2.10.0110.00516.37
7.2.00.0090.00716.34
7.1.330.0060.00816.05
7.1.320.0100.00716.02
7.1.310.0090.00716.13
7.1.300.0050.01116.12
7.1.290.0070.00616.15
7.1.280.0090.00615.12
7.1.270.0100.00415.15
7.1.260.0190.00415.12
7.1.250.0090.00615.22
7.1.240.0110.00716.88
7.1.230.0130.00517.14
7.1.220.0150.00417.08
7.1.210.0150.00417.16
7.1.200.0140.00416.94
7.1.190.0120.00817.14
7.1.180.0110.00716.97
7.1.170.0130.00517.12
7.1.160.0130.00416.93
7.1.150.0130.00717.09
7.1.140.0120.00616.89
7.1.130.0190.00017.21
7.1.120.0160.00317.15
7.1.110.0150.00417.14
7.1.100.0160.00416.90
7.1.90.0120.00616.93
7.1.80.0210.00017.19
7.1.70.0100.01016.82
7.1.60.0120.00817.16
7.1.50.0110.00717.00
7.1.40.0110.00816.91
7.1.30.0110.00716.98
7.1.20.0150.00417.08
7.1.10.0150.00317.18
7.1.00.0130.00717.11
7.0.330.0450.00614.64
7.0.320.0130.00416.89
7.0.310.0140.00316.72
7.0.300.0150.00316.71
7.0.290.0140.00516.75
7.0.280.0140.00416.77
7.0.270.0150.00316.95
7.0.260.0120.00616.65
7.0.250.0150.00316.89
7.0.240.0150.00416.96
7.0.230.0140.00716.99
7.0.220.0180.00016.94
7.0.210.0130.00516.93
7.0.200.0180.00016.75
7.0.190.0180.00016.71
7.0.180.0160.00316.78
7.0.170.0110.00716.92
7.0.160.0210.00016.92
7.0.150.0140.00416.90
7.0.140.0140.00516.89
7.0.130.0090.00917.02
7.0.120.0180.00017.04
7.0.110.0180.00016.81
7.0.100.0140.00316.75
7.0.90.0150.00416.74
7.0.80.0140.00416.77
7.0.70.0140.00316.74
7.0.60.0110.00716.93
7.0.50.0170.00016.66
7.0.40.0170.00016.93
7.0.30.0150.00416.84
7.0.20.0160.00316.74
7.0.10.0090.00916.99
7.0.00.0170.00016.90
5.6.400.0120.00514.74
5.6.390.0130.00814.72
5.6.380.0080.00714.48
5.6.370.0180.00015.71
5.6.360.0130.00315.78
5.6.350.0100.00715.54
5.6.340.0110.00615.68
5.6.330.0080.00815.80
5.6.320.0140.00315.59
5.6.310.0160.00015.81
5.6.300.0100.01015.68
5.6.290.0090.00915.67
5.6.280.0140.00315.77
5.6.270.0090.00915.77
5.6.260.0160.00015.47
5.6.250.0090.00915.61
5.6.240.0160.00015.57
5.6.230.0120.00415.61
5.6.220.0110.00615.73
5.6.210.0130.00315.72
5.6.200.0160.00015.69
5.6.190.0140.00315.77
5.6.180.0080.00815.54
5.6.170.0170.00015.76
5.6.160.0130.00315.72
5.6.150.0160.00015.83
5.6.140.0060.01215.70
5.6.130.0120.00415.80
5.6.120.0140.00415.59
5.6.110.0100.00715.73
5.6.100.0080.01215.65
5.6.90.0160.00315.58
5.6.80.0160.00315.64
5.6.70.0170.00215.82
5.6.60.0110.00715.70
5.6.50.0150.00615.63
5.6.40.0190.00315.60
5.6.30.0200.00015.43
5.6.20.0140.00315.43
5.6.10.0170.00315.55
5.6.00.0090.00615.53
5.2.10.0050.00311.49
4.4.90.0010.00210.26

preferences:
25.76 ms | 403 KiB | 5 Q