3v4l.org

run code in 300+ PHP versions simultaneously
<?php class DummyStream { public function stream_open($path, $mode, $options, &$opened_path) { return true; } public function stream_read($count) { var_dump($count); return false; } public function stream_eof() { return false; } public function stream_seek($offset, $whence) { return true; } public function stream_tell() { return 0; } } stream_wrapper_register('dummy', 'DummyStream'); $fp = fopen('dummy://foo/bar', 'r'); fread($fp, 16);

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.01118.33
8.3.50.0160.00522.12
8.3.40.0110.00418.71
8.3.30.0030.01218.96
8.3.20.0060.00320.18
8.3.10.0000.00920.28
8.3.00.0030.00719.01
8.2.180.0110.00416.38
8.2.170.0070.00722.96
8.2.160.0070.00720.39
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0070.00022.09
8.2.110.0090.00022.08
8.2.100.0090.00317.72
8.2.90.0040.00419.05
8.2.80.0040.00417.97
8.2.70.0030.00517.38
8.2.60.0040.00417.92
8.2.50.0080.00018.07
8.2.40.0040.00418.03
8.2.30.0030.00619.34
8.2.20.0050.00317.63
8.2.10.0090.00017.99
8.2.00.0000.00817.53
8.1.280.0130.01025.92
8.1.270.0040.00423.82
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0070.01023.79
8.1.230.0090.00619.09
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0030.00617.23
8.1.180.0000.00818.10
8.1.170.0000.00818.48
8.1.160.0000.00721.93
8.1.150.0050.00218.92
8.1.140.0000.00717.38
8.1.130.0000.00717.82
8.1.120.0050.00217.37
8.1.110.0030.00417.38
8.1.100.0070.00017.31
8.1.90.0000.00817.35
8.1.80.0040.00417.41
8.1.70.0030.00317.33
8.1.60.0040.00417.58
8.1.50.0000.00817.39
8.1.40.0050.00317.51
8.1.30.0050.00317.61
8.1.20.0040.00417.71
8.1.10.0000.00717.50
8.1.00.0060.00617.36
8.0.300.0070.00018.77
8.0.290.0000.00716.63
8.0.280.0070.00018.36
8.0.270.0050.00217.24
8.0.260.0030.00317.23
8.0.250.0000.00716.88
8.0.240.0030.00616.79
8.0.230.0000.00716.99
8.0.220.0000.00716.94
8.0.210.0050.00216.76
8.0.200.0040.00416.81
8.0.190.0030.00416.93
8.0.180.0030.00616.82
8.0.170.0070.00016.82
8.0.160.0050.00316.96
8.0.150.0030.00416.84
8.0.140.0040.00416.73
8.0.130.0000.00513.27
8.0.120.0060.00316.91
8.0.110.0000.00716.72
8.0.100.0040.00416.69
8.0.90.0000.00716.74
8.0.80.0220.00016.86
8.0.70.0000.00716.77
8.0.60.0040.00416.88
8.0.50.0000.00716.85
8.0.30.0100.01017.20
8.0.20.0130.00617.40
8.0.10.0090.00016.95
8.0.00.0100.00716.60
7.4.330.0000.00515.00
7.4.320.0000.00616.54
7.4.300.0000.00616.60
7.4.290.0000.00716.50
7.4.280.0000.00616.60
7.4.270.0000.00716.59
7.4.260.0060.00316.61
7.4.250.0000.00716.46
7.4.240.0040.00416.52
7.4.230.0000.00716.45
7.4.220.0160.01016.64
7.4.210.0070.00716.63
7.4.200.0000.00716.30
7.4.160.0000.01516.52
7.4.150.0000.01817.40
7.4.140.0140.00317.86
7.4.130.0110.00616.56
7.4.120.0090.00816.43
7.4.110.0070.01016.33
7.4.100.0100.00716.35
7.4.90.0140.00316.51
7.4.80.0080.00819.39
7.4.70.0030.01316.55
7.4.60.0090.00616.34
7.4.50.0000.00816.34
7.4.40.0120.00616.52
7.4.30.0120.00416.53
7.4.00.0090.00814.77
7.3.330.0000.00513.30
7.3.320.0020.00213.29
7.3.310.0070.00016.33
7.3.300.0040.00416.25
7.3.290.0070.00716.37
7.3.280.0080.01116.28
7.3.270.0120.00617.40
7.3.260.0050.01316.20
7.3.250.0100.00716.28
7.3.240.0100.00716.23
7.3.230.0070.01016.49
7.3.210.0040.01216.17
7.3.200.0120.00619.39
7.3.190.0110.01116.33
7.3.180.0000.01516.51
7.3.170.0150.00016.27
7.3.160.0140.00316.09
7.3.120.0080.00614.57
7.3.110.0040.01514.76
7.3.100.0070.01014.79
7.3.90.0150.00314.41
7.3.80.0070.01114.52
7.3.70.0100.00714.87
7.3.60.0100.00314.84
7.3.50.0040.01214.57
7.3.40.0040.01514.53
7.3.30.0070.00714.33
7.3.20.0070.01016.58
7.3.10.0150.00316.34
7.3.00.0120.00316.37
7.2.330.0030.01316.48
7.2.320.0120.00916.54
7.2.310.0070.01016.40
7.2.300.0060.01016.64
7.2.290.0110.01116.59
7.2.250.0120.00815.07
7.2.240.0070.01414.53
7.2.230.0060.00614.88
7.2.220.0000.01014.52
7.2.210.0030.01414.96
7.2.200.0070.00714.54
7.2.190.0060.00615.05
7.2.180.0130.00614.68
7.2.170.0070.00714.83
7.2.60.0120.00316.90
7.2.00.0100.01419.26
7.1.330.0060.00915.79
7.1.320.0100.00415.70
7.1.310.0080.00515.45
7.1.300.0030.01015.42
7.1.290.0130.00315.46
7.1.280.0030.00715.79
7.1.270.0060.00615.76
7.1.260.0070.00315.44
7.1.200.0070.00715.83
7.1.100.0060.00617.98
7.1.70.0040.00417.16
7.1.60.0090.01219.12
7.1.50.0140.01117.01
7.1.00.0030.07722.25
7.0.200.0000.00716.75
7.0.140.0030.07322.18
7.0.60.0130.07719.78
7.0.50.0030.05717.74
7.0.40.0130.05720.02
7.0.30.0470.04320.10
7.0.20.0370.07320.22
7.0.10.0270.07320.19
7.0.00.0070.04020.10
5.6.280.0030.07320.97
5.6.210.0030.05020.73
5.6.200.0100.07318.18
5.6.190.0070.07720.61
5.6.180.0230.04720.68
5.6.170.0270.06720.52
5.6.160.0000.04720.57
5.6.150.0000.08718.18
5.6.140.0070.04018.18
5.6.130.0030.04318.14
5.6.120.0000.05721.04
5.6.110.0100.08321.14
5.6.100.0070.03721.12
5.6.90.0230.06721.10
5.6.80.0000.04320.36
5.6.70.3570.03020.54
5.5.350.0100.04720.30
5.5.340.0100.04717.98
5.5.330.0100.07720.37
5.5.320.0270.07320.27
5.5.310.0300.07720.36
5.5.300.0070.03718.04
5.5.290.0170.04318.03
5.5.280.0100.07720.97
5.5.270.0070.08320.77
5.5.260.0170.07720.72
5.5.250.0030.04020.62
5.5.240.0030.04720.20
5.4.450.0270.05019.20
5.4.440.0270.04719.32
5.4.430.0170.04319.54
5.4.420.0230.04719.50
5.4.410.0900.04719.19
5.4.400.0400.04719.09
5.4.390.0270.05019.22
5.4.380.0330.06718.81
5.4.370.0470.05018.70
5.4.360.0300.06018.76
5.4.350.0870.06718.54
5.4.340.0330.06318.74
5.4.320.0080.03512.51
5.4.310.0040.04812.50
5.4.300.0080.03412.51
5.4.290.0090.04912.50
5.4.280.0110.03212.41
5.4.270.0050.03612.41
5.4.260.0070.03612.40
5.4.250.0040.03912.40
5.4.240.0060.03712.40
5.4.230.0060.04112.39
5.4.220.0080.04412.40
5.4.210.0070.04012.39
5.4.200.0100.04412.39
5.4.190.0100.03612.39
5.4.180.0070.05212.39
5.4.170.0130.03912.39
5.4.160.0070.03412.39
5.4.150.0050.03612.39
5.4.140.0080.03812.07
5.4.130.0040.03912.06
5.4.120.0060.04512.02
5.4.110.0070.04312.02
5.4.100.0080.03612.02
5.4.90.0030.04012.02
5.4.80.0110.04012.02
5.4.70.0050.03512.02
5.4.60.0030.03712.02
5.4.50.0050.03612.01
5.4.40.0080.04212.00
5.4.30.0120.03612.00
5.4.20.0050.03512.00
5.4.10.0080.03812.00
5.4.00.0070.04311.49
5.3.290.0040.04912.80
5.3.280.0080.03912.71
5.3.270.0110.04612.72
5.3.260.0050.04512.71
5.3.250.0060.04412.72
5.3.240.0080.03912.72
5.3.230.0080.03912.71
5.3.220.0090.04412.68
5.3.210.0070.03712.68
5.3.200.0090.03312.68
5.3.190.0040.03912.68
5.3.180.0070.03712.68
5.3.170.0120.03912.67
5.3.160.0040.03812.67
5.3.150.0100.03312.67
5.3.140.0070.04012.66
5.3.130.0070.04412.66
5.3.120.0090.04812.66
5.3.110.0060.04112.66
5.3.100.0020.04012.13
5.3.90.0070.03512.11
5.3.80.0060.03512.10
5.3.70.0050.03612.09
5.3.60.0050.05612.08
5.3.50.0070.04612.03
5.3.40.0090.03612.03
5.3.30.0120.03911.99
5.3.20.0080.04011.77
5.3.10.0060.03411.73
5.3.00.0070.04911.72
5.2.170.0040.0369.22
5.2.160.0060.0369.22
5.2.150.0080.0379.23
5.2.140.0080.0289.22
5.2.130.0060.0349.18
5.2.120.0030.0299.18
5.2.110.0100.0249.19
5.2.100.0100.0329.18
5.2.90.0090.0359.19
5.2.80.0070.0279.18
5.2.70.0060.0309.18
5.2.60.0050.0319.13
5.2.50.0030.0409.10
5.2.40.0100.0299.08
5.2.30.0070.0319.05
5.2.20.0060.0359.05
5.2.10.0050.0368.95
5.2.00.0080.0288.81
5.1.60.0070.0298.09
5.1.50.0040.0258.09
5.1.40.0030.0268.07
5.1.30.0040.0278.43
5.1.20.0060.0268.45
5.1.10.0040.0278.18
5.1.00.0060.0358.18
5.0.50.0060.0266.65
5.0.40.0060.0286.46
5.0.30.0070.0296.27
5.0.20.0050.0266.24
5.0.10.0050.0296.22
5.0.00.0060.0306.21
4.4.90.0040.0194.78
4.4.80.0020.0164.75
4.4.70.0050.0164.75
4.4.60.0030.0214.75
4.4.50.0030.0154.77
4.4.40.0020.0254.71
4.4.30.0020.0164.76
4.4.20.0030.0154.85
4.4.10.0030.0154.85
4.4.00.0030.0244.76
4.3.110.0040.0144.67
4.3.100.0040.0134.67
4.3.90.0070.0184.63
4.3.80.0020.0264.58
4.3.70.0030.0144.63
4.3.60.0040.0134.63
4.3.50.0020.0164.62
4.3.40.0050.0224.54
4.3.30.0030.0193.30
4.3.20.0020.0163.28
4.3.10.0030.0153.23
4.3.00.0030.01316.72

preferences:
44.5 ms | 401 KiB | 5 Q