3v4l.org

run code in 300+ PHP versions simultaneously
<?php class DummyStream { public function stream_open($path, $mode, $options, &$opened_path) { echo 'open'; return true; } public function stream_read($count) { var_dump($count); return false; } public function stream_eof() { echo 'eof'; return false; } public function stream_seek($offset, $whence) { echo 'seek'; return true; } public function stream_tell() { echo '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.70.0060.00918.43
8.3.60.0090.00618.56
8.3.50.0100.00921.95
8.3.40.0100.00318.54
8.3.30.0170.00318.85
8.3.20.0070.00020.16
8.3.10.0080.00020.46
8.3.00.0080.00417.50
8.2.190.0110.00416.88
8.2.180.0090.00918.06
8.2.170.0140.00322.96
8.2.160.0110.00320.38
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0040.00422.11
8.2.110.0030.00622.20
8.2.100.0110.00017.84
8.2.90.0000.00819.09
8.2.80.0040.00417.97
8.2.70.0080.00017.63
8.2.60.0040.00417.80
8.2.50.0040.00418.07
8.2.40.0000.00818.06
8.2.30.0000.00819.46
8.2.20.0000.00717.51
8.2.10.0080.00017.98
8.2.00.0060.00317.61
8.1.280.0040.01125.92
8.1.270.0040.00423.92
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0000.01123.87
8.1.230.0090.00618.77
8.1.220.0030.00517.74
8.1.210.0080.00018.77
8.1.200.0000.01017.35
8.1.190.0080.00017.23
8.1.180.0050.00218.10
8.1.170.0040.00418.44
8.1.160.0080.00021.99
8.1.150.0080.00018.80
8.1.140.0040.00417.43
8.1.130.0000.00717.82
8.1.120.0000.00817.39
8.1.110.0040.00417.35
8.1.100.0030.00517.42
8.1.90.0050.00217.41
8.1.80.0000.00717.36
8.1.70.0000.00717.39
8.1.60.0030.00617.48
8.1.50.0060.00317.42
8.1.40.0030.00517.38
8.1.30.0080.00017.63
8.1.20.0060.00317.66
8.1.10.0040.00417.37
8.1.00.0080.00317.41
8.0.300.0000.00818.77
8.0.290.0000.00716.75
8.0.280.0030.00318.42
8.0.270.0030.00317.31
8.0.260.0040.00417.18
8.0.250.0040.00416.96
8.0.240.0030.00516.93
8.0.230.0000.00716.94
8.0.220.0030.00316.95
8.0.210.0000.00716.85
8.0.200.0060.00316.98
8.0.190.0080.00016.81
8.0.180.0110.00016.92
8.0.170.0040.00416.80
8.0.160.0000.00716.91
8.0.150.0000.00716.79
8.0.140.0070.00016.74
8.0.130.0030.00313.27
8.0.120.0030.00616.86
8.0.110.0030.00516.84
8.0.100.0000.00716.72
8.0.90.0000.00716.93
8.0.80.0070.01016.83
8.0.70.0040.00416.94
8.0.60.0000.00816.95
8.0.50.0040.00416.84
8.0.30.0130.00517.17
8.0.20.0170.00417.40
8.0.10.0030.00516.96
8.0.00.0110.00616.82
7.4.330.0030.00315.00
7.4.320.0030.00316.48
7.4.300.0060.00016.59
7.4.290.0020.00516.45
7.4.280.0030.00316.50
7.4.270.0030.00316.55
7.4.260.0000.00816.60
7.4.250.0040.00416.57
7.4.240.0030.00416.54
7.4.230.0030.00316.33
7.4.220.0030.01316.63
7.4.210.0000.01916.54
7.4.200.0040.00416.41
7.4.160.0040.01116.43
7.4.150.0160.00817.40
7.4.140.0120.00817.86
7.4.130.0080.00916.56
7.4.120.0120.00516.48
7.4.110.0170.00016.43
7.4.100.0070.01116.43
7.4.90.0100.00616.66
7.4.80.0130.00619.39
7.4.70.0100.00616.37
7.4.60.0070.01016.54
7.4.50.0030.00516.69
7.4.40.0060.01016.47
7.4.30.0070.01016.66
7.4.00.0000.01615.02
7.3.330.0060.00013.29
7.3.320.0030.00313.32
7.3.310.0000.00716.30
7.3.300.0030.00316.21
7.3.290.0140.00016.29
7.3.280.0030.01316.29
7.3.270.0030.01417.40
7.3.260.0110.00516.57
7.3.250.0130.01316.42
7.3.240.0090.00616.22
7.3.230.0070.01016.39
7.3.210.0130.00416.22
7.3.200.0100.00619.39
7.3.190.0180.00616.50
7.3.180.0030.01316.43
7.3.170.0100.00616.54
7.3.160.0140.00316.30
7.2.330.0090.00916.54
7.2.320.0100.01016.50
7.2.310.0090.00916.78
7.2.300.0140.00316.70
7.2.290.0160.00616.66
7.2.00.0390.00019.22
7.1.200.0040.00715.82
7.1.100.0060.00617.88
7.1.70.0060.00617.04
7.1.60.0040.01919.12
7.1.50.0060.01616.64
7.1.00.0000.08022.40
7.0.200.0100.00316.59
7.0.140.0000.07722.09
7.0.60.0100.08319.91
7.0.50.0070.08317.86
7.0.40.0130.08320.26
7.0.30.0370.04720.26
7.0.20.0300.03020.09
7.0.10.0070.08720.12
7.0.00.0130.08020.30
5.6.280.0070.07321.08
5.6.210.0170.07320.77
5.6.200.0100.08018.15
5.6.190.0130.08020.39
5.6.180.0300.06320.41
5.6.170.0200.03720.55
5.6.160.0100.06720.71
5.6.150.0100.05318.18
5.6.140.0030.03718.18
5.6.130.0100.03718.16
5.6.120.0070.04021.15
5.6.110.0000.05021.00
5.6.100.0030.07320.98
5.6.90.0170.05721.10
5.6.80.0230.06320.34
5.6.70.4530.03720.39
5.5.350.0300.07720.42
5.5.340.0000.04017.99
5.5.330.0000.04320.57
5.5.320.0230.05320.29
5.5.310.0300.07020.37
5.5.300.0070.05717.95
5.5.290.0130.04018.08
5.5.280.0000.04720.77
5.5.270.0100.08320.77
5.5.260.0130.08020.80
5.5.250.0030.04720.63
5.5.240.0300.07020.27
5.4.450.0670.04319.53
5.4.440.0300.04719.49
5.4.430.0330.04319.54
5.4.420.0200.04319.55
5.4.410.0670.04719.21
5.4.400.0470.03719.19
5.4.390.0300.04319.09
5.4.380.0370.05018.75
5.4.370.0330.07018.72
5.4.360.0270.06018.59
5.4.350.0270.06318.59
5.4.340.0270.05318.75
5.4.320.0070.03512.51
5.4.310.0060.03912.50
5.4.300.0070.03412.50
5.4.290.0080.03512.50
5.4.280.0040.03612.40
5.4.270.0040.03912.40
5.4.260.0050.03812.40
5.4.250.0060.03712.40
5.4.240.0070.03512.40
5.4.230.0060.03712.39
5.4.220.0070.03512.39
5.4.210.0050.03512.39
5.4.200.0070.03512.39
5.4.190.0070.03412.39
5.4.180.0050.03612.39
5.4.170.0020.03812.39
5.4.160.0060.03412.39
5.4.150.0040.03612.39
5.4.140.0080.03812.07
5.4.130.0050.03512.06
5.4.120.0080.04712.02
5.4.110.0070.04212.02
5.4.100.0070.03612.01
5.4.90.0030.04012.02
5.4.80.0070.04312.02
5.4.70.0080.04912.02
5.4.60.0060.04712.01
5.4.50.0080.03312.02
5.4.40.0030.03712.00
5.4.30.0080.03312.00
5.4.20.0040.03912.00
5.4.10.0110.04012.00
5.4.00.0070.03811.48
5.3.290.0070.04412.80
5.3.280.0140.04612.71
5.3.270.0060.04212.72
5.3.260.0030.04612.72
5.3.250.0050.04112.72
5.3.240.0080.04012.72
5.3.230.0050.04912.71
5.3.220.0090.03812.68
5.3.210.0060.04012.68
5.3.200.0040.03912.68
5.3.190.0080.04112.68
5.3.180.0050.03812.68
5.3.170.0080.03412.66
5.3.160.0030.03912.67
5.3.150.0100.03512.68
5.3.140.0070.03512.66
5.3.130.0090.03712.66
5.3.120.0050.04012.66
5.3.110.0050.04312.66
5.3.100.0050.03712.13
5.3.90.0020.03912.11
5.3.80.0060.03612.10
5.3.70.0040.04612.10
5.3.60.0050.03712.09
5.3.50.0080.04012.05
5.3.40.0040.03712.03
5.3.30.0090.03111.99
5.3.20.0080.03911.77
5.3.10.0070.03611.74
5.3.00.0120.03811.72
5.2.170.0060.0329.22
5.2.160.0070.0279.22
5.2.150.0040.0319.22
5.2.140.0060.0299.22
5.2.130.0030.0339.18
5.2.120.0040.0359.18
5.2.110.0070.0299.19
5.2.100.0040.0299.18
5.2.90.0060.0279.19
5.2.80.0030.0329.18
5.2.70.0050.0309.18
5.2.60.0030.0319.14
5.2.50.0080.0369.11
5.2.40.0040.0289.08
5.2.30.0040.0309.05
5.2.20.0010.0329.05
5.2.10.0080.0308.95
5.2.00.0010.0328.81
5.1.60.0030.0258.10
5.1.50.0030.0258.10
5.1.40.0020.0268.08
5.1.30.0020.0308.43
5.1.20.0090.0238.45
5.1.10.0050.0258.17
5.1.00.0040.0258.18
5.0.50.0040.0196.65
5.0.40.0050.0176.46
5.0.30.0040.0306.27
5.0.20.0020.0216.24
5.0.10.0020.0226.23
5.0.00.0060.0316.21
4.4.90.0040.0144.78
4.4.80.0020.0174.75
4.4.70.0040.0254.75
4.4.60.0040.0194.75
4.4.50.0010.0174.77
4.4.40.0020.0294.71
4.4.30.0040.0144.76
4.4.20.0050.0234.85
4.4.10.0040.0154.85
4.4.00.0030.0274.76
4.3.110.0030.0154.67
4.3.100.0050.0144.67
4.3.90.0020.0164.63
4.3.80.0060.0224.58
4.3.70.0030.0154.63
4.3.60.0050.0124.63
4.3.50.0040.0204.62
4.3.40.0030.0324.54
4.3.30.0010.0173.30
4.3.20.0000.0233.28
4.3.10.0030.0153.23
4.3.00.0070.01316.72

preferences:
48.56 ms | 401 KiB | 5 Q