3v4l.org

run code in 300+ PHP versions simultaneously
<?php method_exists('SplFileObject', 'fread') or die("No SplFileObject::fread()"); $width = 16; $hex_width = 3 * $width; $file = new SplFileObject(__FILE__); while ($file->valid()) { $chunk = $file->fread($width); $hex = array_map(function ($char) { return sprintf('%02X', ord($char)); }, str_split($chunk)); printf("%-' {$hex_width}s %s\n", implode(' ', $hex), preg_replace('/[^[:print:]]/', '.', $chunk)); }

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.0110.01116.50
8.3.50.0150.00522.96
8.3.40.0000.01518.84
8.3.30.0110.00319.05
8.3.20.0000.00820.18
8.3.10.0090.00023.58
8.3.00.0090.00019.38
8.2.180.0120.00916.75
8.2.170.0040.01122.96
8.2.160.0030.01020.39
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0030.00626.16
8.2.120.0040.00420.98
8.2.110.0060.00322.20
8.2.100.0110.00018.22
8.2.90.0030.00619.18
8.2.80.0000.00817.97
8.2.70.0060.00317.63
8.2.60.0040.00417.93
8.2.50.0040.00418.07
8.2.40.0000.01018.28
8.2.30.0070.00018.09
8.2.20.0080.00017.80
8.2.10.0090.00018.04
8.2.00.0000.00917.91
8.1.280.0090.00625.92
8.1.270.0040.00422.21
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0000.00922.18
8.1.230.0040.00719.02
8.1.220.0040.00417.77
8.1.210.0000.00818.77
8.1.200.0040.00417.38
8.1.190.0030.00517.38
8.1.180.0080.00018.10
8.1.170.0080.00018.84
8.1.160.0020.00522.07
8.1.150.0030.00518.96
8.1.140.0040.00417.53
8.1.130.0000.00717.87
8.1.120.0050.00317.54
8.1.110.0000.00817.57
8.1.100.0050.00217.68
8.1.90.0040.00417.61
8.1.80.0040.00417.53
8.1.70.0040.00417.56
8.1.60.0030.00617.72
8.1.50.0030.00617.55
8.1.40.0080.00317.48
8.1.30.0030.00517.66
8.1.20.0040.00417.80
8.1.10.0050.00317.63
8.1.00.0030.00717.54
8.0.300.0030.00518.77
8.0.290.0040.00417.00
8.0.280.0000.00718.48
8.0.270.0050.00317.24
8.0.260.0040.00417.31
8.0.250.0000.00717.11
8.0.240.0070.00017.16
8.0.230.0070.00016.98
8.0.220.0000.00717.10
8.0.210.0000.00717.07
8.0.200.0000.00717.03
8.0.190.0050.00317.00
8.0.180.0040.00417.07
8.0.170.0050.00316.97
8.0.160.0040.00417.01
8.0.150.0050.00216.98
8.0.140.0040.00416.98
8.0.130.0030.00313.52
8.0.120.0080.00016.98
8.0.110.0000.00717.04
8.0.100.0020.00516.93
8.0.90.0080.00017.12
8.0.80.0030.01816.94
8.0.70.0050.00317.03
8.0.60.0040.00417.10
8.0.50.0040.00417.00
8.0.30.0100.00917.39
8.0.20.0100.01017.41
8.0.10.0040.00417.05
8.0.00.0110.00817.07
7.4.330.0050.00015.11
7.4.320.0030.00316.86
7.4.300.0000.00616.83
7.4.290.0000.00716.64
7.4.280.0000.00716.87
7.4.270.0000.00716.85
7.4.260.0000.01016.85
7.4.250.0080.00016.84
7.4.240.0020.00516.73
7.4.230.0030.00316.73
7.4.220.0080.01516.68
7.4.210.0110.00316.93
7.4.200.0000.00716.93
7.4.160.0150.00816.54
7.4.150.0090.00917.40
7.4.140.0100.01017.86
7.4.130.0070.01016.66
7.4.120.0040.01416.70
7.4.110.0030.01316.71
7.4.100.0110.01416.59
7.4.90.0090.01216.91
7.4.80.0090.00919.39
7.4.70.0090.00916.66
7.4.60.0030.01316.46
7.4.50.0060.00316.56
7.4.40.0150.00416.79
7.4.30.0030.01316.71
7.4.00.0090.01015.08
7.3.330.0070.00013.36
7.3.320.0000.00613.30
7.3.310.0020.00516.57
7.3.300.0000.00716.59
7.3.290.0150.00716.57
7.3.280.0080.01116.52
7.3.270.0070.01017.40
7.3.260.0130.00616.80
7.3.250.0140.00716.69
7.3.240.0070.01116.81
7.3.230.0080.00816.50
7.3.210.0160.00316.80
7.3.200.0130.00819.39
7.3.190.0030.01716.82
7.3.180.0100.00716.41
7.3.170.0030.01316.51
7.3.160.0080.00816.41
7.3.120.0050.01515.07
7.3.110.0050.01414.95
7.3.100.0080.00815.22
7.3.90.0100.00815.05
7.3.80.0080.01015.12
7.3.70.0050.00915.11
7.3.60.0050.00614.96
7.3.50.0090.00515.04
7.3.40.0080.00515.00
7.3.30.0070.00815.11
7.3.20.0050.00916.92
7.3.10.0090.00716.90
7.3.00.0030.01316.57
7.2.330.0100.01716.74
7.2.320.0100.01416.82
7.2.310.0070.01416.82
7.2.300.0070.01016.80
7.2.290.0150.00916.83
7.2.250.0060.01315.22
7.2.240.0120.00715.33
7.2.230.0090.01115.30
7.2.220.0100.00515.26
7.2.210.0080.00815.17
7.2.200.0070.00815.04
7.2.190.0040.01115.24
7.2.180.0030.01515.24
7.2.170.0030.01315.24
7.2.80.0090.00316.47
7.2.00.0070.01019.67
7.1.330.0070.01016.05
7.1.320.0060.00815.94
7.1.310.0040.01316.04
7.1.300.0080.00816.05
7.1.290.0150.00016.08
7.1.280.0080.00615.89
7.1.270.0090.00515.88
7.1.260.0050.00916.05
7.1.200.0030.01216.02
7.1.100.0030.01018.32
7.1.70.0040.00717.45
7.1.60.0040.00717.46
7.1.50.0080.00517.27
7.1.00.0000.08022.29
7.0.200.0000.01616.67
7.0.140.0000.08021.97
7.0.60.0130.07319.93
7.0.50.0070.08017.97
7.0.40.0100.08719.99
7.0.30.0300.08320.21
7.0.20.0200.08020.12
7.0.10.0130.08320.08
7.0.00.0030.04020.09
5.6.280.0030.07721.05
5.6.210.0070.08020.70
5.6.200.0030.05018.22
5.6.190.0070.06320.42
5.6.180.0230.08320.61
5.6.170.0200.09020.47
5.6.160.0070.07720.71
5.6.150.0030.08718.22
5.6.140.0100.07718.23
5.6.130.0030.07718.27
5.6.120.0000.04721.12
5.6.110.0070.05321.03
5.6.100.0070.06021.04
5.6.90.0100.08720.99
5.6.80.0000.09020.39
5.5.350.4070.04320.45
5.5.340.0130.07017.99
5.5.330.0000.09020.31
5.5.320.0400.07020.38
5.5.310.0300.04720.34
5.5.300.0070.07318.08
5.5.290.0030.06017.92
5.5.280.0030.08720.88
5.5.270.0100.08320.98
5.5.260.0070.08020.64
5.5.250.0170.06020.70
5.5.240.0270.07020.38
5.4.450.0030.04319.48
5.4.440.0130.05019.32
5.4.430.0100.03319.49
5.4.420.0370.04319.15
5.4.410.0200.04019.33
5.4.400.0500.02719.22
5.4.390.0430.03719.15
5.4.380.0300.05318.61
5.4.370.0400.06018.56
5.4.360.0400.05718.47
5.4.350.0270.05318.59
5.4.340.0300.05018.78
5.4.320.0080.03512.50
5.4.310.0050.04012.50
5.4.300.0060.03712.50
5.4.290.0080.03612.50
5.4.280.0040.03712.39
5.4.270.0060.03512.39
5.4.260.0060.03712.39
5.4.250.0050.04112.39
5.4.240.0100.03512.39
5.4.230.0080.04112.39
5.4.220.0070.04212.38
5.4.210.0040.03612.38
5.4.200.0050.04212.38
5.4.190.0060.03512.38
5.4.180.0100.03312.38
5.4.170.0050.03712.39
5.4.160.0070.03512.39
5.4.150.0050.03712.38
5.4.140.0070.03612.07
5.4.130.0050.03612.06
5.4.120.0050.03612.02
5.4.110.0090.04712.02
5.4.100.0040.05212.01
5.4.90.0060.04112.02
5.4.80.0050.03712.02
5.4.70.0030.03712.01
5.4.60.0100.03212.01
5.4.50.0040.03712.00
5.4.40.0060.03812.00
5.4.30.0070.05012.00
5.4.20.0080.04411.99
5.4.10.0060.03611.99
5.4.00.0040.04011.49
5.3.290.0050.04112.80
5.3.280.0050.03912.71
5.3.270.0050.04112.72
5.3.260.0080.05712.72
5.3.250.0110.05012.72
5.3.240.0040.05712.72
5.3.230.0100.05312.71
5.3.220.0080.04512.68
5.3.210.0060.04112.68
5.3.200.0020.04112.68
5.3.190.0060.03712.68
5.3.180.0040.03812.67
5.3.170.0080.03412.67
5.3.160.0060.03712.67
5.3.150.0090.03812.68
5.3.140.0060.05012.66
5.3.130.0090.04412.66
5.3.120.0060.04112.65
5.3.110.0010.04312.66
5.3.100.0040.03812.11
5.3.90.0070.03512.10
5.3.80.0070.03412.09
5.3.70.0040.04012.09
5.3.60.0080.03412.08
5.3.50.0030.04012.03
5.3.40.0050.03912.03
5.3.30.0040.03811.98
5.3.20.0070.03611.76
5.3.10.0060.04611.73
5.3.00.0070.04811.72
5.2.170.0110.0369.19
5.2.160.0080.0399.19
5.2.150.0050.0429.18
5.2.140.0050.0379.18
5.2.130.0070.0289.14
5.2.120.0040.0289.14
5.2.110.0040.0309.15
5.2.100.0060.0279.14
5.2.90.0030.0319.14
5.2.80.0060.0289.14
5.2.70.0040.0309.14
5.2.60.0030.0319.09
5.2.50.0030.0319.07
5.2.40.0070.0269.04
5.2.30.0050.0309.02
5.2.20.0040.0309.00
5.2.10.0030.0328.93
5.2.00.0050.0288.79
5.1.60.0040.0248.07
5.1.50.0030.0278.07
5.1.40.0050.0258.05
5.1.30.0070.0328.40
5.1.20.0040.0278.42
5.1.10.0050.0258.15
5.1.00.0030.0268.15
5.0.50.0030.0216.62
5.0.40.0040.0196.48
5.0.30.0040.0326.29
5.0.20.0040.0196.27
5.0.10.0060.0186.25
5.0.00.0030.0336.24
4.4.90.0030.0184.78
4.4.80.0030.0254.76
4.4.70.0030.0234.76
4.4.60.0020.0184.75
4.4.50.0000.0204.77
4.4.40.0020.0264.71
4.4.30.0020.0164.76
4.4.20.0030.0154.84
4.4.10.0010.0174.85
4.4.00.0030.0254.75
4.3.110.0050.0144.67
4.3.100.0030.0154.66
4.3.90.0010.0164.64
4.3.80.0020.0254.58
4.3.70.0010.0164.63
4.3.60.0040.0144.63
4.3.50.0040.0184.63
4.3.40.0020.0254.54
4.3.30.0010.0163.29
4.3.20.0010.0173.27
4.3.10.0010.0163.23
4.3.00.0000.01715.63

preferences:
59.37 ms | 401 KiB | 5 Q