3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (!function_exists('interface_exists')) { die('Days long-since passed.'); } if (interface_exists('Throwable')) { foreach (get_declared_classes() as $cn) { $implements = class_implements($cn); if (isset($implements['Throwable'])) { echo sprintf("Ah yes, the infamous Throwable, '%s'.", $cn); die(); } } echo "We have only heard legends of this so-called 'Throwable'"; } else { echo "What is a 'Throwable'?"; }

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.0040.01418.43
8.3.50.0070.01016.30
8.3.40.0160.00618.78
8.3.30.0070.00718.84
8.3.20.0040.00421.94
8.3.10.0060.01220.45
8.3.00.0060.00319.26
8.2.180.0060.00925.92
8.2.170.0090.00622.96
8.2.160.0130.00020.35
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0070.00019.83
8.2.120.0070.00026.35
8.2.110.0100.00021.03
8.2.100.0040.00818.03
8.2.90.0050.00318.16
8.2.80.0000.00819.33
8.2.70.0060.00318.05
8.2.60.0040.00418.22
8.2.50.0040.00418.10
8.2.40.0080.00021.06
8.2.30.0040.00418.11
8.2.20.0070.00017.99
8.2.10.0040.00419.41
8.2.00.0040.00418.10
8.1.280.0090.00625.92
8.1.270.0140.00020.11
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0000.00923.92
8.1.230.0030.01020.97
8.1.220.0000.00817.91
8.1.210.0080.00018.77
8.1.200.0000.01017.23
8.1.190.0040.00417.35
8.1.180.0060.00318.10
8.1.170.0040.00418.49
8.1.160.0040.00418.82
8.1.150.0020.00518.87
8.1.140.0000.00720.67
8.1.130.0000.00720.13
8.1.120.0080.00017.49
8.1.110.0040.00417.44
8.1.100.0030.00617.34
8.1.90.0000.00717.45
8.1.80.0000.00917.40
8.1.70.0030.00717.44
8.1.60.0000.00817.46
8.1.50.0030.00517.40
8.1.40.0080.00017.41
8.1.30.0080.00017.53
8.1.20.0000.00717.70
8.1.10.0000.00817.54
8.1.00.0000.00717.39
8.0.300.0040.00420.21
8.0.290.0000.00716.75
8.0.280.0040.00418.48
8.0.270.0000.00717.31
8.0.260.0020.00518.44
8.0.250.0000.00716.93
8.0.240.0030.00316.95
8.0.230.0070.00016.89
8.0.220.0000.00716.92
8.0.210.0030.00316.84
8.0.200.0030.00317.06
8.0.190.0040.00417.01
8.0.180.0060.00317.01
8.0.170.0000.00816.93
8.0.160.0040.00416.97
8.0.150.0070.00016.80
8.0.140.0040.00416.96
8.0.130.0030.00313.34
8.0.120.0040.00416.87
8.0.110.0040.00416.99
8.0.100.0040.00416.84
8.0.90.0040.00416.82
8.0.80.0130.00316.88
8.0.70.0040.00416.93
8.0.60.0000.00716.94
8.0.50.0080.00016.96
8.0.30.0150.00316.91
8.0.20.0170.00917.29
8.0.10.0070.00017.08
8.0.00.0100.01016.77
7.4.330.0000.00415.55
7.4.320.0070.00016.40
7.4.300.0060.00016.51
7.4.290.0070.00016.50
7.4.280.0000.00716.44
7.4.270.0050.00216.42
7.4.260.0050.00316.58
7.4.250.0000.00716.55
7.4.240.0030.00516.49
7.4.230.0000.00716.53
7.4.220.0000.00716.25
7.4.210.0090.00616.64
7.4.200.0050.00316.71
7.4.160.0090.00716.52
7.4.140.0100.01017.86
7.4.130.0170.00616.55
7.4.120.0090.00916.38
7.4.110.0120.00616.42
7.4.100.0100.00716.43
7.4.90.0030.01716.59
7.4.80.0180.00319.39
7.4.70.0090.00916.57
7.4.60.0000.01616.46
7.4.50.0040.01216.40
7.4.40.0040.01516.63
7.4.00.0090.00914.78
7.3.330.0000.00513.21
7.3.320.0030.00313.27
7.3.310.0000.00816.39
7.3.300.0030.00316.28
7.3.290.0030.00616.20
7.3.280.0040.01416.32
7.3.260.0100.00916.30
7.3.240.0090.00916.31
7.3.230.0110.00616.45
7.3.210.0100.00716.32
7.3.200.0070.01016.52
7.3.190.0060.01316.27
7.3.180.0150.00416.48
7.3.170.0120.00616.32
7.3.160.0150.00316.48
7.3.20.0570.00614.88
7.3.10.0250.00514.71
7.3.00.0370.00914.73
7.2.330.0120.01216.58
7.2.320.0140.00316.54
7.2.310.0140.00716.83
7.2.300.0070.01716.66
7.2.290.0090.01216.48
7.2.150.0300.01515.20
7.2.140.0280.00715.07
7.2.130.0310.00915.01
7.2.120.0440.01514.73
7.2.110.0580.00315.06
7.2.100.0560.01714.63
7.2.90.0700.00415.05
7.2.80.0390.01014.82
7.2.70.0530.01414.71
7.2.60.0680.01115.01
7.2.50.0630.00914.63
7.2.40.0530.01314.98
7.2.30.0720.00015.11
7.2.20.0470.00914.84
7.2.10.0570.01014.93
7.2.00.0720.00314.91
7.1.250.0460.00413.57
7.1.240.0620.00713.33
7.1.230.0430.00913.65
7.1.220.0390.00713.62
7.1.210.0610.00913.38
7.1.200.0400.00713.47
7.1.190.0500.00413.82
7.1.180.0560.00613.57
7.1.170.0710.00313.58
7.1.160.0600.00313.60
7.1.150.0610.00713.60
7.1.140.0570.00613.71
7.1.130.0480.00313.55
7.1.120.0450.00013.30
7.1.110.0340.00713.27
7.1.100.0490.01013.20
7.1.90.0450.00613.31
7.1.80.0490.00713.21
7.1.70.0270.01513.86
7.1.60.0450.00013.51
7.1.50.0620.00713.85
7.1.40.0520.00713.70
7.1.30.0530.01113.69
7.1.20.0460.01013.50
7.1.10.0370.00613.75
7.1.00.0420.00613.86
7.0.330.0410.01212.95
7.0.320.0420.00713.42
7.0.310.0530.00713.47
7.0.300.0540.00013.43
7.0.290.1500.00913.21
7.0.280.0500.00713.54
7.0.270.0650.00613.25
7.0.260.0430.00713.40
7.0.250.0550.00313.66
7.0.240.0400.00313.66
7.0.230.0580.00313.71
7.0.220.0470.00913.67
7.0.210.0460.00613.71
7.0.200.0360.00713.37
7.0.190.0490.01113.49
7.0.180.0580.00313.41
7.0.170.0590.01813.43
7.0.160.0510.00713.72
7.0.150.0410.00313.50
7.0.140.0470.00313.50
7.0.130.0670.00413.31
7.0.120.0620.00313.71
7.0.110.0620.00913.52
7.0.100.0630.00713.50
7.0.90.0580.01013.48
7.0.80.0420.00313.39
7.0.70.0520.00713.38
7.0.60.0470.00913.49
7.0.50.0500.00913.46
7.0.40.0530.01013.74
7.0.30.0630.00013.70
7.0.20.0530.00713.55
7.0.10.0560.00413.59
7.0.00.0650.00013.69
5.6.380.0110.00014.27
5.6.370.0140.00514.07
5.6.360.0130.00314.04
5.6.350.0090.01214.23
5.6.340.0090.00914.46
5.6.330.0200.01014.21
5.6.320.0170.01013.91
5.6.310.0160.00914.41
5.6.300.0150.01114.50
5.6.290.0130.00914.50
5.6.280.0110.00514.17
5.6.270.0180.00014.33
5.6.260.0120.00414.15
5.6.250.0140.00014.25
5.6.240.0150.00214.04
5.6.230.0160.00314.44
5.6.220.0110.01114.09
5.6.210.0140.01014.18
5.6.200.0120.00814.15
5.6.190.0160.00014.20
5.6.180.0170.00014.47
5.6.170.0170.01414.05
5.6.160.0100.01414.38
5.6.150.0230.00514.20
5.6.140.0140.01114.37
5.6.130.0120.00614.12
5.6.120.0140.01114.26
5.6.110.0100.01014.29
5.6.100.0100.01014.28
5.6.90.0130.00714.02
5.6.80.0170.00713.88
5.6.70.0200.00513.86
5.6.60.0160.00614.32
5.6.50.0080.01214.31
5.6.40.0100.00614.07
5.6.30.0180.00614.00
5.6.20.0230.00014.06
5.6.10.0160.01614.21
5.6.00.0100.01014.23
5.5.380.0100.01010.70
5.5.370.0110.00810.95
5.5.360.0080.00810.70
5.5.350.0110.00810.91
5.5.340.0050.00510.84
5.5.330.0090.00411.03
5.5.320.0140.00810.70
5.5.310.0140.00711.16
5.5.300.0000.01310.73
5.5.290.0090.00711.08
5.5.280.0070.00311.28
5.5.270.0030.01310.91
5.5.260.0140.00710.66
5.5.250.0050.00510.48
5.5.240.0130.00510.93
5.5.230.0150.00710.80
5.5.220.0130.00011.00
5.5.210.0130.00010.95
5.5.200.0050.00510.93
5.5.190.0120.00910.73
5.5.180.0160.00211.08
5.5.170.0000.00911.13
5.5.160.0070.00510.80
5.5.150.0100.01010.98
5.5.140.0140.00210.60
5.5.130.0190.00311.02
5.5.120.0080.00310.84
5.5.110.0100.00311.03
5.5.100.0120.00910.55
5.5.90.0110.00410.74
5.5.80.0110.00610.67
5.5.70.0050.00910.48
5.5.60.0060.00610.71
5.5.50.0040.01310.90
5.5.40.0040.00810.61
5.5.30.0090.00510.64
5.5.20.0040.01510.79
5.5.10.0070.01010.64
5.5.00.0030.00810.58
5.4.450.0130.00310.91
5.4.440.0110.00310.97
5.4.430.0060.00910.93
5.4.420.0160.00310.93
5.4.410.0070.01110.83
5.4.400.0100.00610.69
5.4.390.0160.00410.61
5.4.380.0100.00310.77
5.4.370.0110.00510.63
5.4.360.0160.00010.63
5.4.350.0150.00310.53
5.4.340.0050.00510.70
5.4.330.0110.01110.73
5.4.320.0110.00010.93
5.4.310.0070.00310.59
5.4.300.0070.01010.53
5.4.290.0070.01010.54
5.4.280.0090.00410.77
5.4.270.0140.00510.50
5.4.260.0080.01110.59
5.4.250.0060.00910.71
5.4.240.0130.00010.65
5.4.230.0090.00310.70
5.4.220.0120.00910.73
5.4.210.0060.01110.68
5.4.200.0090.00010.55
5.4.190.0150.00610.59
5.4.180.0070.00710.67
5.4.170.0040.00810.45
5.4.160.0080.00310.46
5.4.150.0030.00910.66
5.4.140.0070.00510.92
5.4.130.0030.01310.76
5.4.120.0080.00410.86
5.4.110.0130.00310.86
5.4.100.0080.00810.81
5.4.90.0030.01010.55
5.4.80.0150.00510.93
5.4.70.0100.00710.82
5.4.60.0180.00410.65
5.4.50.0120.00410.66
5.4.40.0070.00710.61
5.4.30.0040.00810.73
5.4.20.0090.00910.86
5.4.10.0090.00010.88
5.4.00.0080.00810.63
5.3.290.0150.00610.37
5.3.280.0040.00710.23
5.3.270.0060.01310.44
5.3.260.0080.00410.29
5.3.250.0070.00310.41
5.3.240.0080.00310.19
5.3.230.0090.00910.41
5.3.220.0040.01310.02
5.3.210.0110.00510.06
5.3.200.0070.01010.23
5.3.190.0090.00910.05
5.3.180.0000.01010.42
5.3.170.0120.00810.48
5.3.160.0080.00810.36
5.3.150.0050.00710.27
5.3.140.0100.00010.37
5.3.130.0130.00310.39
5.3.120.0090.00210.22
5.3.110.0070.00710.35
5.3.100.0050.00510.32
5.3.90.0050.00510.29
5.3.80.0060.00310.05
5.3.70.0000.00810.32
5.3.60.0100.00310.35
5.3.50.0060.00610.27
5.3.40.0030.01210.01
5.3.30.0120.00410.32
5.3.20.0030.00610.14
5.3.10.0080.00310.07
5.3.00.0070.00710.11
5.2.170.0080.0089.46
5.2.160.0100.0039.46
5.2.150.0040.0119.26
5.2.140.0000.0099.40
5.2.130.0080.0089.00
5.2.120.0050.0089.35
5.2.110.0050.0039.07
5.2.100.0060.0039.35
5.2.90.0030.0079.08
5.2.80.0130.0059.23
5.2.70.0100.0109.24
5.2.60.0040.0049.23
5.2.50.0150.0008.99
5.2.40.0070.0039.06
5.2.30.0050.0039.22
5.2.20.0050.0059.16
5.2.10.0110.0049.01
5.2.00.0140.0038.78
5.1.60.0060.0068.20
5.1.50.0110.0048.37
5.1.40.0080.0048.60
5.1.30.0040.0078.58
5.1.20.0070.0078.46
5.1.10.0090.0058.36
5.1.00.0070.0078.42
5.0.50.0050.0047.59
5.0.40.0030.0067.29
5.0.30.0110.0007.29
5.0.20.0050.0007.45
5.0.10.0080.0057.29
5.0.00.0060.0007.29
4.4.90.0030.0037.29
4.4.80.0000.0057.29
4.4.70.0000.0107.29
4.4.60.0040.0027.29
4.4.50.0050.0007.29
4.4.40.0060.0007.29
4.4.30.0090.0007.29
4.4.20.0000.0067.29
4.4.10.0050.0037.29
4.4.00.0000.0067.29
4.3.110.0050.0057.29
4.3.100.0050.0007.29
4.3.90.0040.0007.29
4.3.80.0000.0047.29
4.3.70.0000.0047.29
4.3.60.0050.0007.29
4.3.50.0030.0067.29
4.3.40.0060.0037.29
4.3.30.0080.0037.29
4.3.20.0030.0037.29
4.3.10.0020.0077.29
4.3.00.0040.0047.29

preferences:
74.24 ms | 401 KiB | 5 Q