3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (!interface_exists('Throwable', false)) { interface Throwable { } } if (!class_exists('Error', false)) { // We can't really avoid making this extend Exception in PHP 5. class Error extends Exception implements Throwable { } } if (!class_exists('TypeError', false)) { class TypeError extends Error { } }

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.0140.00718.30
8.3.50.0090.01217.95
8.3.40.0030.01018.68
8.3.30.0110.00418.53
8.3.20.0070.00020.16
8.3.10.0040.00421.87
8.3.00.0080.00017.93
8.2.170.0110.00318.77
8.2.160.0060.00922.96
8.2.150.0040.00425.66
8.2.140.0050.00324.66
8.2.130.0050.00326.16
8.2.120.0040.00419.77
8.2.110.0050.00521.12
8.2.100.0050.00517.84
8.2.90.0060.00318.03
8.2.80.0050.00318.22
8.2.70.0000.00817.50
8.2.60.0000.00817.50
8.2.50.0040.00418.10
8.2.40.0090.00019.20
8.2.30.0040.00420.61
8.2.20.0020.00617.50
8.2.10.0000.00818.07
8.2.00.0000.00818.03
8.1.270.0090.00923.92
8.1.260.0000.00726.35
8.1.250.0090.00028.09
8.1.240.0040.00423.89
8.1.230.0070.00422.64
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0000.00817.35
8.1.190.0000.00917.13
8.1.180.0000.00918.10
8.1.170.0040.00418.53
8.1.160.0030.00618.77
8.1.150.0030.00418.81
8.1.140.0000.00817.33
8.1.130.0040.00420.17
8.1.120.0030.00317.37
8.1.110.0000.00717.39
8.1.100.0040.00417.30
8.1.90.0000.00717.30
8.1.80.0040.00717.41
8.1.70.0040.00417.27
8.1.60.0040.00417.53
8.1.50.0050.00317.34
8.1.40.0040.00417.34
8.1.30.0000.00817.49
8.1.20.0000.00717.44
8.1.10.0000.00717.39
8.1.00.0030.00517.35
8.0.300.0000.00719.97
8.0.290.0080.00016.75
8.0.280.0050.00218.32
8.0.270.0030.00317.21
8.0.260.0000.00718.37
8.0.250.0040.00416.88
8.0.240.0030.00316.88
8.0.230.0080.00016.81
8.0.220.0000.00716.81
8.0.210.0080.00016.86
8.0.200.0000.00616.76
8.0.190.0070.00316.96
8.0.180.0000.00816.86
8.0.170.0040.00416.88
8.0.160.0070.00016.81
8.0.150.0070.00016.70
8.0.140.0000.00716.83
8.0.130.0050.00013.21
8.0.120.0050.00316.80
8.0.110.0000.00716.75
8.0.100.0000.00716.70
8.0.90.0000.00716.82
8.0.80.0120.00316.89
8.0.70.0040.00416.80
8.0.60.0000.00716.88
8.0.50.0000.00816.66
8.0.30.0100.00916.92
8.0.20.0110.00717.40
8.0.10.0040.00417.00
8.0.00.0160.00516.69
7.4.330.0060.00015.08
7.4.320.0000.00616.55
7.4.300.0030.00316.58
7.4.290.0030.00516.43
7.4.280.0040.00416.57
7.4.270.0000.00616.39
7.4.260.0040.00416.53
7.4.250.0070.00016.35
7.4.240.0010.00616.49
7.4.230.0000.00716.44
7.4.220.0100.00716.32
7.4.210.0050.01516.51
7.4.200.0030.00316.45
7.4.160.0150.00816.44
7.4.150.0100.00717.40
7.4.140.0080.01317.86
7.4.130.0120.00516.55
7.4.120.0100.00716.31
7.4.110.0160.00016.59
7.4.100.0080.00816.46
7.4.90.0130.00316.46
7.4.80.0080.00819.39
7.4.70.0070.01416.46
7.4.60.0070.01016.19
7.4.50.0000.00816.16
7.4.40.0140.00316.13
7.4.30.0100.00716.21
7.4.10.0060.00914.95
7.4.00.0030.01214.97
7.3.330.0030.00313.13
7.3.320.0030.00313.15
7.3.310.0070.00016.21
7.3.300.0070.00016.16
7.3.290.0090.00716.15
7.3.280.0100.00816.12
7.3.270.0070.01017.40
7.3.260.0130.00316.43
7.3.250.0070.01016.30
7.3.240.0130.00716.19
7.3.230.0140.00416.42
7.3.210.0080.00816.11
7.3.200.0040.01216.38
7.3.190.0110.00716.07
7.3.180.0060.00916.23
7.3.170.0080.00816.31
7.3.160.0120.00316.45
7.3.130.0100.01014.89
7.3.120.0090.00914.75
7.3.110.0070.01114.65
7.3.100.0040.01014.84
7.3.90.0030.00614.55
7.3.80.0000.00914.64
7.3.70.0000.01414.58
7.3.60.0090.00314.69
7.3.50.0060.00914.65
7.3.40.0060.00614.77
7.3.30.0040.00914.80
7.3.20.0090.00616.36
7.3.10.0070.01016.36
7.3.00.0030.00616.65
7.2.330.0040.01316.43
7.2.320.0090.00916.48
7.2.310.0060.01216.40
7.2.300.0030.01316.38
7.2.290.0000.01616.25
7.2.260.0090.00915.11
7.2.250.0070.01114.57
7.2.240.0100.00314.50
7.2.230.0040.01214.73
7.2.220.0000.01014.93
7.2.210.0060.00614.98
7.2.200.0070.00714.97
7.2.190.0070.01014.85
7.2.180.0030.00614.95
7.2.170.0070.00315.03
7.2.160.0150.00014.97
7.2.150.0090.00616.72
7.2.140.0060.00916.71
7.2.130.0090.00016.61
7.2.120.0060.00916.65
7.2.110.0060.00316.81
7.2.100.0100.00716.67
7.2.90.0030.01016.62
7.2.80.0070.01016.43
7.2.70.0110.00416.38
7.2.60.0040.00716.57
7.2.50.0070.00716.71
7.2.40.0060.01216.84
7.2.30.0000.01016.89
7.2.20.0060.00616.77
7.2.10.0030.00916.82
7.2.00.0040.01217.73
7.1.330.0080.00415.89
7.1.320.0000.01615.32
7.1.310.0090.00615.77
7.1.300.0070.00715.88
7.1.290.0060.00915.40
7.1.280.0030.00715.71
7.1.270.0040.00715.48
7.1.260.0110.00315.43
7.1.250.0060.00315.82
7.1.240.0070.00715.79
7.1.230.0040.00715.72
7.1.220.0100.00315.71
7.1.210.0060.00915.54
7.1.200.0080.00615.71
7.1.190.0120.00015.75
7.1.180.0100.00315.62
7.1.170.0110.00415.40
7.1.160.0100.00615.66
7.1.150.0070.00715.78
7.1.140.0060.00615.61
7.1.130.0060.00315.69
7.1.120.0000.01715.79
7.1.110.0030.00615.52
7.1.100.0190.00216.42
7.1.90.0070.00715.60
7.1.80.0070.01015.65
7.1.70.0010.00716.26
7.1.60.0060.01317.46
7.1.50.0040.00516.04
7.1.40.0100.00015.30
7.1.30.0090.00015.59
7.1.20.0080.00415.68
7.1.10.0060.00315.75
7.1.00.0020.04419.06
7.0.330.0070.00715.38
7.0.320.0060.00615.34
7.0.310.0100.00315.48
7.0.300.0060.00615.23
7.0.290.0120.00315.54
7.0.280.0090.00315.00
7.0.270.0070.00315.31
7.0.260.0100.00315.07
7.0.250.0030.01015.05
7.0.240.0050.00515.14
7.0.230.0000.01415.33
7.0.220.0040.00415.35
7.0.210.0000.00915.32
7.0.200.0070.00516.00
7.0.190.0040.00415.45
7.0.180.0000.01015.16
7.0.170.0030.00715.21
7.0.160.0040.01215.41
7.0.150.0000.00915.40
7.0.140.0030.00915.40
7.0.130.0030.01015.53
7.0.120.0060.01015.33
7.0.110.0040.00715.27
7.0.100.0000.01015.32
7.0.90.0060.00615.42
7.0.80.0000.01215.12
7.0.70.0040.00415.15
7.0.60.0080.04217.71
7.0.50.0020.04816.44
7.0.40.0000.03016.70
7.0.30.0190.03416.83
7.0.20.0180.03916.79
7.0.10.0050.02716.65
7.0.00.0000.03216.84
5.6.400.0090.00914.30
5.6.390.0110.00314.54
5.6.380.0090.00614.50
5.6.370.0080.00814.19
5.6.360.0110.00713.95
5.6.350.0000.01314.08
5.6.340.0130.00314.43
5.6.330.0040.00414.58
5.6.320.0050.00514.27
5.6.310.0000.01814.42
5.6.300.0050.00514.26
5.6.290.0060.00614.22
5.6.280.0020.03317.62
5.6.270.0070.00714.07
5.6.260.0070.00713.98
5.6.250.0040.00414.35
5.6.240.0030.01314.33
5.6.230.0000.01214.17
5.6.220.0060.00914.08
5.6.210.0050.04217.45
5.6.200.0030.03516.12
5.6.190.0030.02717.28
5.6.180.0310.03917.38
5.6.170.0140.03917.34
5.6.160.0100.02517.41
5.6.150.0130.03016.18
5.6.140.0030.05016.29
5.6.130.0050.03416.37
5.6.120.0020.04817.69
5.6.110.0080.03717.52
5.6.100.0050.02517.51
5.6.90.0050.04817.67
5.6.80.0080.04017.32
5.6.70.0070.00714.30
5.6.60.0000.00914.27
5.6.50.0040.00714.02
5.6.40.0090.00614.27
5.6.30.0030.01314.16
5.6.20.0030.00714.00
5.6.10.0080.00613.99
5.6.00.0090.00614.20
5.5.380.0060.00914.25
5.5.370.0030.00914.17
5.5.360.0110.00414.11
5.5.350.0210.03817.22
5.5.340.0060.02016.22
5.5.330.0050.04517.19
5.5.320.0120.04617.13
5.5.310.0170.02017.33
5.5.300.0050.02516.06
5.5.290.0030.04916.13
5.5.280.0100.02217.56
5.5.270.0070.03217.46
5.5.260.0070.03017.56
5.5.250.0100.03717.41
5.5.240.0050.04717.25
5.5.230.0060.00914.28
5.5.220.0110.00014.26
5.5.210.0050.00513.95
5.5.200.0060.00914.11
5.5.190.0090.00313.95
5.5.180.0080.00413.87
5.5.170.0080.00413.92
5.5.160.0060.00913.88
5.5.150.0100.00714.00
5.5.140.0060.00614.21
5.5.130.0070.01013.95
5.5.120.0100.00314.23
5.5.110.0030.01014.17
5.5.100.0030.00914.35
5.5.90.0060.00614.27
5.5.80.0060.00614.05
5.5.70.0030.01014.30
5.5.60.0050.00514.37
5.5.50.0000.01114.27
5.5.40.0060.00814.23
5.5.30.0080.00813.86
5.5.20.0040.00714.08
5.5.10.0080.00313.93
5.5.00.0000.01214.39
5.4.450.0410.02815.63
5.4.440.0610.04515.61
5.4.430.0540.02915.62
5.4.420.0540.03815.48
5.4.410.0470.03115.48
5.4.400.0480.03215.32
5.4.390.0420.03715.44
5.4.380.0420.02915.31
5.4.370.0450.02415.26
5.4.360.0390.03715.50
5.4.350.0400.03115.33
5.4.340.0350.03015.31
5.4.330.0060.00311.63
5.4.320.0610.03815.43
5.4.310.0500.02515.46
5.4.300.0450.02715.46
5.4.290.0450.02915.46
5.4.280.0440.03415.33
5.4.270.0370.02915.38
5.4.260.0380.02515.38
5.4.250.0380.03215.37
5.4.240.0390.02715.44
5.4.230.0400.02715.50
5.4.220.0370.03115.25
5.4.210.0450.03215.34
5.4.200.0460.03115.44
5.4.190.0580.02815.42
5.4.180.0480.03115.38
5.4.170.0550.02815.38
5.4.160.0560.03815.49
5.4.150.0480.03015.38
5.4.140.0570.03614.01
5.4.130.0390.03014.06
5.4.120.0370.02714.11
5.4.110.0350.03214.05
5.4.100.0370.03214.05
5.4.90.0400.02714.06
5.4.80.0380.02913.93
5.4.70.0370.02914.12
5.4.60.0550.03314.09
5.4.50.0420.03114.11
5.4.40.0460.02013.94
5.4.30.0430.02514.11
5.4.20.0380.03114.10
5.4.10.0400.03014.06
5.4.00.0450.03013.74
5.3.290.0800.05714.66
5.3.280.0770.05014.56
5.3.270.0930.05314.62
5.3.260.0730.05014.66
5.3.250.1030.05714.83
5.3.240.0730.06314.61
5.3.230.0770.05014.60
5.3.220.0870.06014.62
5.3.210.0900.05714.79
5.3.200.1030.04714.57
5.3.190.1070.05314.62
5.3.180.0800.05014.65
5.3.170.0730.05014.47
5.3.160.0830.06314.64
5.3.150.1130.06014.71
5.3.140.0970.06014.64
5.3.130.1170.07014.63
5.3.120.0830.06014.55
5.3.110.0900.05714.55
5.3.100.0970.04713.96
5.3.90.1000.06714.05
5.3.80.0930.04713.88
5.3.70.0900.05313.93
5.3.60.0870.06013.91
5.3.50.0830.04013.88
5.3.40.0930.06013.96
5.3.30.0900.04714.05
5.3.20.0930.05313.71
5.3.10.0900.04713.74
5.3.00.1230.05713.55
5.2.170.0700.04711.16
5.2.160.0870.03011.15
5.2.150.0770.04711.16
5.2.140.0730.04711.06
5.2.130.0830.03711.12
5.2.120.0870.03711.16
5.2.110.0930.04011.15
5.2.100.0900.03311.12
5.2.90.0770.04010.97
5.2.80.0870.04011.11
5.2.70.0830.04311.11
5.2.60.0570.04711.28
5.2.50.0970.05010.93
5.2.40.0600.05011.00
5.2.30.0570.04310.90
5.2.20.0630.05010.96
5.2.10.0670.03310.91
5.2.00.0600.04010.77
5.1.60.0530.03710.06
5.1.50.0730.0379.90
5.1.40.0500.04310.04
5.1.30.0630.04010.20
5.1.20.0500.03710.27
5.1.10.0500.03310.23
5.1.00.0630.03310.10
5.0.50.0370.0238.48
5.0.40.0370.0338.49
5.0.30.0430.0478.10
5.0.20.0370.0238.27
5.0.10.0330.0408.09
5.0.00.0300.0478.08
4.4.90.0330.0205.85
4.4.80.0300.0235.85
4.4.70.0300.0205.85
4.4.60.0300.0205.85
4.4.50.0300.0205.85
4.4.40.0330.0375.85
4.4.30.0230.0275.85
4.4.20.0330.0205.88
4.4.10.0270.0235.86
4.4.00.0270.0405.85
4.3.110.0300.0235.85
4.3.100.0330.0275.85
4.3.90.0370.0205.85
4.3.80.0300.0335.85
4.3.70.0330.0205.85
4.3.60.0270.0235.85
4.3.50.0300.0205.85
4.3.40.0370.0275.85
4.3.30.0170.0205.85
4.3.20.0130.0235.85
4.3.10.0170.0205.85
4.3.00.0170.0205.85

preferences:
70.59 ms | 401 KiB | 5 Q