3v4l.org

run code in 300+ PHP versions simultaneously
<?php function HTMLStringify(&$arr, $seen = array()) { if (is_array($arr)) { $seen[] = &$arr; $html = '<ul>'; foreach ($arr as $key => &$value) { $html .= '<li>' . $key; if (is_array($value)){ if(in_array($value, $seen, true)) { $html .= '*RECURSION*'; } else { $html .= HTMLStringify($value, $seen); } } elseif(is_numeric($value) || is_string($value) || is_null($value)) { $html .= ' = ' . $value; } else { $html .= ' [couldn\'t parse ' . gettype($value) . ']'; } $html .= '</li>'; } $html .= '</ul>'; return $html; } else { return null; } } $arr = array(1 => 'one', 2 => 'two'); $arr[3] = &$arr; echo HTMLStringify($arr);

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.0130.00616.63
8.3.50.0150.00622.00
8.3.40.0090.00918.79
8.3.30.0100.00319.21
8.3.20.0040.00420.30
8.3.10.0000.00823.61
8.3.00.0000.00819.38
8.2.180.0220.00018.20
8.2.170.0100.01022.96
8.2.160.0030.01020.46
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0180.00026.16
8.2.120.0000.00722.29
8.2.110.0120.00922.24
8.2.100.0090.00317.66
8.2.90.0040.00419.41
8.2.80.0000.00818.03
8.2.70.0030.00617.50
8.2.60.0040.00417.93
8.2.50.0000.00818.07
8.2.40.0000.00918.22
8.2.30.0070.00018.12
8.2.20.0000.00717.72
8.2.10.0000.00818.13
8.2.00.0030.00817.70
8.1.280.0060.01225.92
8.1.270.0000.00822.11
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0070.00323.91
8.1.230.0110.00019.21
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0040.00417.35
8.1.190.0040.00417.54
8.1.180.0030.00619.05
8.1.170.0030.00618.66
8.1.160.0040.00422.05
8.1.150.0030.00518.54
8.1.140.0040.00417.32
8.1.130.0050.00317.86
8.1.120.0000.00717.41
8.1.110.0070.00317.49
8.1.100.0000.00717.43
8.1.90.0020.00517.47
8.1.80.0060.00317.34
8.1.70.0000.00817.45
8.1.60.0000.01317.56
8.1.50.0040.00417.50
8.1.40.0030.00617.41
8.1.30.0040.00417.64
8.1.20.0040.00417.62
8.1.10.0040.00417.41
8.1.00.0000.00717.33
8.0.300.0000.00820.86
8.0.290.0040.00417.04
8.0.280.0060.00318.45
8.0.270.0070.00017.25
8.0.260.0060.00017.15
8.0.250.0070.00016.83
8.0.240.0000.00716.98
8.0.230.0070.00016.84
8.0.220.0050.00216.79
8.0.210.0000.00716.90
8.0.200.0070.00016.85
8.0.190.0040.00416.99
8.0.180.0040.00416.84
8.0.170.0050.00316.92
8.0.160.0000.00716.79
8.0.150.0050.00316.89
8.0.140.0030.00516.86
8.0.130.0060.00013.29
8.0.120.0000.00716.93
8.0.110.0070.00016.86
8.0.100.0020.00516.71
8.0.90.0040.00416.84
8.0.80.0060.01516.88
8.0.70.0000.00716.90
8.0.60.0070.00016.85
8.0.50.0040.00416.95
8.0.30.0080.01016.97
8.0.20.0120.00817.40
8.0.10.0040.00417.07
8.0.00.0080.00916.74
7.4.330.0050.00015.00
7.4.320.0060.00016.50
7.4.300.0040.00416.58
7.4.290.0040.00416.40
7.4.280.0040.00416.52
7.4.270.0070.00016.36
7.4.260.0000.00716.50
7.4.250.0040.00416.56
7.4.240.0050.00216.60
7.4.230.0070.00016.58
7.4.220.0170.00016.53
7.4.210.0090.00616.57
7.4.200.0000.00816.61
7.4.190.0000.00716.76
7.4.160.0070.01716.57
7.4.150.0100.01117.40
7.4.140.0170.00217.86
7.4.130.0040.01216.57
7.4.120.0110.00716.57
7.4.110.0130.00316.46
7.4.100.0070.01016.39
7.4.90.0100.00616.54
7.4.80.0060.01219.39
7.4.70.0100.01016.46
7.4.60.0170.00016.61
7.4.50.0000.00816.49
7.4.40.0140.00322.77
7.4.30.0040.01216.64
7.4.00.0060.00914.73
7.3.330.0000.00613.24
7.3.320.0000.00513.17
7.3.310.0000.00716.42
7.3.300.0040.00416.36
7.3.290.0000.01416.45
7.3.280.0060.01016.34
7.3.270.0150.00317.40
7.3.260.0070.01016.64
7.3.250.0130.00616.32
7.3.240.0090.00916.57
7.3.230.0030.01416.39
7.3.210.0120.00416.28
7.3.200.0170.00619.39
7.3.190.0190.00316.66
7.3.180.0060.01016.23
7.3.170.0130.00616.32
7.3.160.0060.01216.72
7.3.120.0140.00314.94
7.3.00.0120.00316.43
7.2.330.0110.00716.65
7.2.320.0150.00316.76
7.2.310.0100.00716.73
7.2.300.0100.00616.92
7.2.290.0000.01616.47
7.2.130.0040.01416.94
7.2.120.0070.00716.68
7.2.110.0000.01216.83
7.2.100.0030.00716.88
7.2.90.0210.00316.84
7.2.80.0140.00416.68
7.2.70.0030.00917.18
7.2.60.0060.00616.98
7.2.50.0080.00816.94
7.2.40.0000.01416.92
7.2.30.0000.01517.13
7.2.20.0060.00616.75
7.2.10.0100.00316.99
7.2.00.0030.00718.37
7.1.250.0100.00715.85
7.1.240.0040.01115.93
7.1.230.0040.00415.86
7.1.220.0070.00715.52
7.1.210.0100.00015.57
7.1.200.0050.00915.71
7.1.190.0050.00515.61
7.1.180.0060.00615.83
7.1.170.0000.01115.99
7.1.160.0070.00715.95
7.1.150.0030.00615.59
7.1.140.0040.01115.91
7.1.130.0060.00315.55
7.1.120.0000.01315.65
7.1.110.0150.00415.88
7.1.100.0070.00517.13
7.1.90.0050.00516.02
7.1.80.0130.00015.70
7.1.70.0020.00716.58
7.1.60.0080.00917.57
7.1.50.0040.01216.17
7.1.40.0030.00715.96
7.1.30.0030.00715.62
7.1.20.0000.01415.61
7.1.10.0060.00915.61
7.1.00.0050.04019.11
7.0.330.0030.01015.53
7.0.320.0140.00715.41
7.0.310.0070.00315.43
7.0.300.0030.01315.24
7.0.290.0030.00915.34
7.0.280.0120.00315.41
7.0.270.0070.00715.36
7.0.260.0030.00715.47
7.0.250.0060.01315.44
7.0.240.0000.01215.54
7.0.230.0060.00315.61
7.0.220.0040.00415.50
7.0.210.0120.00315.54
7.0.200.0060.00416.06
7.0.190.0000.01015.29
7.0.180.0000.01215.26
7.0.170.0040.00815.29
7.0.160.0030.00615.47
7.0.150.0120.00015.27
7.0.140.0070.03818.71
7.0.130.0040.00415.43
7.0.120.0130.00315.37
7.0.110.0060.00615.54
7.0.100.0030.02917.69
7.0.90.0030.04817.71
7.0.80.0110.04017.70
7.0.70.0050.04717.57
7.0.60.0050.04917.72
7.0.50.0050.04517.84
7.0.40.0040.04216.78
7.0.30.0020.04816.64
7.0.20.0120.04016.64
7.0.10.0030.03816.77
7.0.00.0100.03716.77
5.6.380.0030.00714.41
5.6.370.0100.00314.30
5.6.360.0030.01013.91
5.6.350.0030.00514.39
5.6.340.0090.00314.67
5.6.330.0070.00714.86
5.6.320.0070.01014.39
5.6.310.0000.00914.72
5.6.300.0080.00414.41
5.6.290.0040.01114.82
5.6.280.0020.04517.82
5.6.270.0040.00814.42
5.6.260.0030.01314.30
5.6.250.0120.02317.59
5.6.240.0050.04717.62
5.6.230.0060.04417.41
5.6.220.0100.03017.31
5.6.210.0090.04317.53
5.6.200.0080.04817.77
5.6.190.0070.03017.62
5.6.180.0080.04117.63
5.6.170.0070.03217.67
5.6.160.0110.02317.58
5.6.150.0150.03317.71
5.6.140.0120.02717.70
5.6.130.0130.04017.71
5.6.120.0080.04317.60
5.6.110.0090.03217.83
5.6.100.0070.04517.66
5.6.90.0050.04717.56
5.6.80.0040.02917.26
5.6.70.0040.04717.25
5.6.60.0070.03717.35
5.6.50.0090.02517.18
5.6.40.0070.04217.27
5.6.30.0030.04417.49
5.6.20.0030.03117.31
5.6.10.0080.04017.50
5.6.00.0050.04517.22
5.5.380.0020.03915.68
5.5.370.0080.03015.87
5.5.360.0030.04815.64
5.5.350.0100.04015.76
5.5.340.0080.03815.96
5.5.330.0060.03715.94
5.5.320.0030.04216.11
5.5.310.0080.03716.16
5.5.300.0030.05015.94
5.5.290.0130.03916.01
5.5.280.0060.03816.08
5.5.270.0080.02616.19
5.5.260.0070.04416.05
5.5.250.0070.04115.93
5.5.240.0080.03315.61
5.5.230.0100.02515.50
5.5.220.0030.04015.61
5.5.210.0160.01515.63
5.5.200.0110.02615.74
5.5.190.0120.03515.63
5.5.180.0020.03215.59
5.5.170.0070.00311.07
5.5.160.0050.03415.55
5.5.150.0030.02715.54
5.5.140.0100.03915.58
5.5.130.0050.03115.67
5.5.120.0000.03115.63
5.5.110.0050.04515.53
5.5.100.0080.03515.63
5.5.90.0030.02315.66
5.5.80.0070.02515.52
5.5.70.0060.02415.54
5.5.60.0050.03315.67
5.5.50.0050.04415.62
5.5.40.0070.03215.71
5.5.30.0090.02215.72
5.5.20.0050.03315.66
5.5.10.0100.01815.51
5.5.00.0090.04015.71
5.4.450.0030.03015.39
5.4.440.0040.04415.42
5.4.430.0000.03215.32
5.4.420.0050.04115.27
5.4.410.0080.03315.14
5.4.400.0070.01815.06
5.4.390.0060.04015.02
5.4.380.0080.03615.01
5.4.370.0100.03715.15
5.4.360.0050.04014.84
5.4.350.0050.04015.08
5.4.340.0030.04215.04
5.4.330.0030.00911.20
5.4.320.0030.04015.09
5.4.310.0100.03115.16
5.4.300.0150.02215.13
5.4.290.0050.04115.22
5.4.280.0090.03714.83
5.4.270.0040.02515.19
5.4.260.0050.04215.15
5.4.250.0100.02115.16
5.4.240.0100.03515.04
5.4.230.0050.02414.88
5.4.220.0030.04415.05
5.4.210.0090.02115.04
5.4.200.0080.02315.20
5.4.190.0070.04015.00
5.4.180.0050.02215.07
5.4.170.0060.04115.08
5.4.160.0050.04015.02
5.4.150.0050.03715.24
5.4.140.0050.03213.60
5.4.130.0040.02713.75
5.4.120.0050.04013.68
5.4.110.0100.03813.83
5.4.100.0100.03513.72
5.4.90.0070.03913.88
5.4.80.0020.03713.79
5.4.70.0040.04013.85
5.4.60.0010.04013.76
5.4.50.0100.04013.61
5.4.40.0050.02213.72
5.4.30.0050.04113.83
5.4.20.0080.03213.74
5.4.10.0070.03313.68
5.4.00.0040.03713.42
5.3.290.0060.04112.68
5.3.280.0020.04312.61
5.3.270.0030.04012.68
5.3.260.0080.03812.64
5.3.250.0090.02312.64
5.3.240.0020.02512.59
5.3.230.0030.04412.68
5.3.220.0050.04012.43
5.3.210.0050.04212.49
5.3.200.0030.03612.61
5.3.190.0000.04112.49
5.3.180.0050.03912.46
5.3.170.0090.02012.50
5.3.160.0070.02512.69
5.3.150.0120.03812.68
5.3.140.0160.02312.68
5.3.130.0020.03012.49
5.3.120.0070.02512.47
5.3.110.0030.04112.67
5.3.100.0100.03512.44
5.3.90.0050.02512.36
5.3.80.0030.04212.23
5.3.70.0070.02312.29
5.3.60.0100.02212.21
5.3.50.0060.03612.25
5.3.40.0100.03512.30
5.3.30.0020.03712.30
5.3.20.0050.02212.08
5.3.10.0020.03411.98
5.3.00.0060.03611.87
5.2.170.0060.03010.33
5.2.160.0050.02110.36
5.2.150.0060.03310.32
5.2.140.0060.02310.33
5.2.130.0030.02710.31
5.2.120.0060.03210.33
5.2.110.0000.02410.33
5.2.100.0030.02110.32
5.2.90.0050.03510.28
5.2.80.0040.02510.26
5.2.70.0030.03010.33
5.2.60.0110.01910.21
5.2.50.0050.02910.24
5.2.40.0060.02510.21
5.2.30.0060.02510.23
5.2.20.0020.03610.22
5.2.10.0000.03610.15
5.2.00.0000.02010.02
5.1.60.0070.0279.73
5.1.50.0080.0239.70
5.1.40.0030.0189.72
5.1.30.0030.0229.89
5.1.20.0070.0309.91
5.1.10.0090.0229.66
5.1.00.0060.0239.74
5.0.50.0010.0198.98
5.0.40.0040.0228.95
5.0.30.0030.0338.75
5.0.20.0010.0168.87
5.0.10.0080.0188.86
5.0.00.0060.0318.79
4.4.90.0020.0248.71
4.4.80.0040.0208.71
4.4.70.0000.0158.71
4.4.60.0030.0188.71
4.4.50.0050.0188.71
4.4.40.0020.0218.71
4.4.30.0020.0178.71
4.4.20.0030.0188.71
4.4.10.0040.0078.71
4.4.00.0040.0308.71
4.3.110.0050.0138.71
4.3.100.0060.0128.71
4.3.90.0000.0208.71
4.3.80.0030.0278.71
4.3.70.0020.0178.71
4.3.60.0030.0108.71
4.3.50.0030.0208.71
4.3.40.0000.0168.71
4.3.30.0020.0178.71
4.3.20.0020.0128.71
4.3.10.0000.0208.71
4.3.00.0030.0188.71

preferences:
46.19 ms | 401 KiB | 5 Q