3v4l.org

run code in 300+ PHP versions simultaneously
<?php method_exists('SplFileObject', 'fread') or die("No SplFileObject::fread()"); $i=0; $file = new SplFileObject(__FILE__); while ($i++ < 1000 && ($chunk = $file->fread(10)) !== false) { echo $chunk . "\n"; }

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.0070.01016.50
8.3.50.0070.01819.85
8.3.40.0110.01818.69
8.3.30.0150.00319.05
8.3.20.0030.00620.25
8.3.10.0000.00923.60
8.3.00.0150.00419.25
8.2.180.0100.01016.63
8.2.170.0030.01422.96
8.2.160.0130.00320.35
8.2.150.0060.00324.18
8.2.140.0060.00324.66
8.2.130.0130.00626.16
8.2.120.0090.00020.96
8.2.110.0100.00020.47
8.2.100.0060.00618.22
8.2.90.0060.00319.09
8.2.80.0060.00317.97
8.2.70.0030.00617.38
8.2.60.0080.00017.87
8.2.50.0060.00318.07
8.2.40.0130.00018.22
8.2.30.0060.00318.07
8.2.20.0000.00817.68
8.2.10.0000.00918.04
8.2.00.0030.00617.68
8.1.270.0060.00323.93
8.1.260.0100.00026.35
8.1.250.0030.00628.09
8.1.240.0030.00822.11
8.1.230.0090.00319.16
8.1.220.0060.00317.74
8.1.210.0030.00618.77
8.1.200.0040.00717.24
8.1.190.0040.00417.13
8.1.180.0060.00318.10
8.1.170.0000.00918.59
8.1.160.0000.00821.96
8.1.150.0080.00018.85
8.1.140.0030.00517.50
8.1.130.0030.00617.82
8.1.120.0050.00317.50
8.1.110.0030.00517.50
8.1.100.0000.00817.43
8.1.90.0030.00517.37
8.1.80.0040.00417.45
8.1.70.0000.00817.33
8.1.60.0090.00017.58
8.1.50.0060.00317.55
8.1.40.0080.00417.43
8.1.30.0000.00917.65
8.1.20.0080.00017.65
8.1.10.0000.00817.63
8.1.00.0000.00817.43
8.0.300.0080.00018.77
8.0.290.0060.00316.63
8.0.280.0050.00318.31
8.0.270.0080.00017.28
8.0.260.0080.00017.25
8.0.250.0040.00416.86
8.0.240.0000.00817.00
8.0.230.0080.00016.90
8.0.220.0040.00416.95
8.0.210.0000.00816.77
8.0.200.0040.00416.79
8.0.190.0030.00617.02
8.0.180.0040.00416.81
8.0.170.0040.00416.96
8.0.160.0000.00816.90
8.0.150.0000.00816.77
8.0.140.0000.00916.71
8.0.130.0030.00313.26
8.0.120.0030.00616.75
8.0.110.0000.00916.86
8.0.100.0040.00416.90
8.0.90.0040.00416.73
8.0.80.0130.01016.89
8.0.70.0000.00916.84
8.0.60.0040.00416.79
8.0.50.0060.00316.93
8.0.30.0230.01217.11
8.0.20.0210.01517.40
8.0.10.0050.00317.05
8.0.00.0180.01416.88
7.4.330.0030.00315.08
7.4.320.0000.00916.62
7.4.300.0020.00516.45
7.4.290.0060.00316.41
7.4.280.0030.00516.65
7.4.270.0050.00516.53
7.4.260.0030.00816.52
7.4.250.0030.00616.58
7.4.240.0020.00816.54
7.4.230.0080.00016.35
7.4.220.0070.01816.55
7.4.210.0130.00616.55
7.4.200.0050.00316.64
7.4.160.0180.00616.59
7.4.150.0190.01017.40
7.4.140.0180.01217.86
7.4.130.0220.00516.55
7.4.120.0220.00816.54
7.4.110.0140.01116.49
7.4.100.0090.01816.42
7.4.90.0060.01916.45
7.4.80.0110.01119.39
7.4.70.0110.01116.48
7.4.60.0090.01316.50
7.4.50.0030.00716.35
7.4.40.0160.01316.71
7.4.30.0140.01116.45
7.4.00.0070.01414.78
7.3.330.0040.00413.19
7.3.320.0030.00313.11
7.3.310.0080.00016.25
7.3.300.0080.00016.26
7.3.290.0100.01616.25
7.3.280.0100.01616.33
7.3.270.0130.01917.40
7.3.260.0290.00916.37
7.3.250.0170.01216.31
7.3.240.0180.01116.30
7.3.230.0200.00716.39
7.3.210.0120.01216.59
7.3.200.0100.01619.39
7.3.190.0120.01216.31
7.3.180.0200.01316.52
7.3.170.0060.01716.52
7.3.160.0090.01516.29
7.2.330.0140.01316.66
7.2.320.0130.01516.66
7.2.310.0160.01316.70
7.2.300.0130.01016.45
7.2.290.0120.01216.80
7.2.60.0070.01117.06
7.2.00.0130.00319.39
7.1.200.0100.00615.92
7.1.100.0100.00318.20
7.1.70.0080.00017.09
7.1.60.0100.01719.40
7.1.50.0070.01717.04
7.1.00.0100.07322.54
7.0.200.0110.00416.82
7.0.140.0130.06721.97
7.0.60.0130.04020.01
7.0.50.0130.07717.89
7.0.40.0030.09020.05
7.0.30.0600.07720.17
7.0.20.0200.09320.09
7.0.10.0130.07720.20
7.0.00.0070.09020.30
5.6.280.0030.07721.07
5.6.210.0170.03020.67
5.6.200.0070.05318.14
5.6.190.0070.05320.77
5.6.180.0200.04320.27
5.6.170.0200.03720.49
5.6.160.0100.04020.39
5.6.150.0000.07718.13
5.6.140.0070.06718.12
5.6.130.0100.04318.11
5.6.120.0070.07321.02
5.6.110.0170.07720.95
5.6.100.0130.03320.98
5.6.90.0070.04721.07
5.6.80.0200.05020.37
5.5.350.3930.04320.38
5.5.340.0070.06317.93
5.5.330.0100.08720.07
5.5.320.0400.05320.19
5.5.310.0270.05720.50
5.5.300.0100.08017.95
5.5.290.0070.04017.98
5.5.280.0200.07720.88
5.5.270.0030.04020.75
5.5.260.0130.08320.86
5.5.250.0000.08320.65
5.5.240.0270.07020.15
5.4.450.0330.03319.44
5.4.440.0500.01719.21
5.4.430.0670.05019.20
5.4.420.0270.04319.20
5.4.410.0400.03719.41
5.4.400.0600.04318.93
5.4.390.0500.03019.06
5.4.380.0570.06718.72
5.4.370.0370.06318.50
5.4.360.0300.05718.75
5.4.350.0300.06318.61
5.4.340.0500.07718.59
5.4.320.0060.03512.46
5.4.310.0040.03912.45
5.4.300.0040.03712.46
5.4.290.0090.04112.45
5.4.280.0090.03212.35
5.4.270.0060.04112.35
5.4.260.0050.03812.35
5.4.250.0050.04412.35
5.4.240.0050.03812.35
5.4.230.0070.04712.34
5.4.220.0070.03412.34
5.4.210.0070.03412.34
5.4.200.0090.03512.34
5.4.190.0070.03512.34
5.4.180.0080.03412.34
5.4.170.0070.03412.35
5.4.160.0030.04512.35
5.4.150.0040.04212.34
5.4.140.0040.03812.02
5.4.130.0080.03612.01
5.4.120.0020.04411.97
5.4.110.0010.04011.97
5.4.100.0050.03511.96
5.4.90.0070.03411.96
5.4.80.0080.03311.96
5.4.70.0060.03311.96
5.4.60.0050.03411.97
5.4.50.0080.03211.97
5.4.40.0060.04211.95
5.4.30.0050.03811.95
5.4.20.0050.03511.95
5.4.10.0030.03611.95
5.4.00.0040.03611.45
5.3.290.0050.03912.80
5.3.280.0040.03812.71
5.3.270.0030.04412.73
5.3.260.0100.04112.72
5.3.250.0020.04012.72
5.3.240.0010.04112.72
5.3.230.0050.03812.70
5.3.220.0070.03512.68
5.3.210.0050.03912.68
5.3.200.0040.03712.68
5.3.190.0050.04012.68
5.3.180.0070.03512.67
5.3.170.0030.03912.67
5.3.160.0050.03712.67
5.3.150.0060.03712.68
5.3.140.0050.03712.66
5.3.130.0030.04112.66
5.3.120.0100.03412.66
5.3.110.0080.03612.66
5.3.100.0060.03712.12
5.3.90.0090.03412.09
5.3.80.0070.03412.07
5.3.70.0050.03612.07
5.3.60.0080.03312.06
5.3.50.0040.03712.00
5.3.40.0070.03412.00
5.3.30.0060.03411.95
5.3.20.0050.03511.72
5.3.10.0030.03711.70
5.3.00.0050.03611.68
5.2.170.0040.0309.18
5.2.160.0050.0289.18
5.2.150.0040.0329.18
5.2.140.0050.0309.18
5.2.130.0040.0299.14
5.2.120.0080.0299.14
5.2.110.0060.0299.15
5.2.100.0030.0299.14
5.2.90.0070.0269.14
5.2.80.0050.0299.14
5.2.70.0030.0319.14
5.2.60.0060.0279.09
5.2.50.0050.0319.06
5.2.40.0040.0289.04
5.2.30.0050.0289.01
5.2.20.0050.0279.00
5.2.10.0060.0268.92
5.2.00.0020.0308.78
5.1.60.0050.0258.06
5.1.50.0040.0278.06
5.1.40.0020.0258.05
5.1.30.0050.0278.39
5.1.20.0040.0278.42
5.1.10.0040.0258.14
5.1.00.0030.0268.14
5.0.50.0030.0216.62
5.0.40.0050.0176.48
5.0.30.0040.0316.29
5.0.20.0020.0216.26
5.0.10.0040.0196.24
5.0.00.0020.0356.23
4.4.90.0060.0114.78
4.4.80.0030.0144.75
4.4.70.0020.0154.76
4.4.60.0030.0144.75
4.4.50.0050.0124.77
4.4.40.0040.0264.71
4.4.30.0020.0174.76
4.4.20.0030.0154.84
4.4.10.0000.0184.85
4.4.00.0030.0244.76
4.3.110.0010.0174.67
4.3.100.0010.0164.66
4.3.90.0020.0194.63
4.3.80.0010.0254.59
4.3.70.0020.0184.63
4.3.60.0010.0204.63
4.3.50.0020.0154.63
4.3.40.0030.0264.54
4.3.30.0040.0233.28
4.3.20.0010.0183.26
4.3.10.0010.0163.21
4.3.00.0070.01315.63

preferences:
51.61 ms | 400 KiB | 5 Q