3v4l.org

run code in 300+ PHP versions simultaneously
<?php class PosixStream { private $fileHandle = null; private $host; private $position = 0; public function stream_open($path, $mode, $options, &$opened_path) { $url = parse_url($path); exit($url['host'] . $url['path'] . "\n" . $mode . "\n" . $options . "\n" . $opened_path); //$this->host = parse_url($path, PHP_URL_HOST); //$this->fileHandle = fopen($); fopen(); return true; } public function stream_read($count) { return ''; } public function stream_write($data) { return 0; } public function stream_tell() { return 0; } public function stream_eof() { true; } public function stream_seek($offset, $whence = SEEK_SET) { return false; } public function stream_metadata($path, $option, $value) { exit($path . "\n" . $option . "\n" . $value); return false; } } stream_wrapper_register('steve', 'PosixStream'); $test = fopen('steve://t/e/test.txt', 'r+'); fclose($test);

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.0030.01218.43
8.3.50.0150.00321.14
8.3.40.0090.01218.96
8.3.30.0120.00320.26
8.3.20.0070.00020.15
8.3.10.0080.00022.09
8.3.00.0000.00822.26
8.2.180.0090.00916.75
8.2.170.0100.00322.96
8.2.160.0070.00722.11
8.2.150.0080.00024.18
8.2.140.0050.00524.66
8.2.130.0070.00026.16
8.2.120.0090.00020.82
8.2.110.0090.00020.57
8.2.100.0150.00017.91
8.2.90.0040.00419.15
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0040.00417.93
8.2.50.0030.00518.10
8.2.40.0030.00620.64
8.2.30.0050.00319.57
8.2.20.0040.00417.74
8.2.10.0040.00417.71
8.2.00.0040.00417.82
8.1.280.0100.01025.92
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0070.00322.20
8.1.230.0110.00017.70
8.1.220.0030.00617.74
8.1.210.0000.00818.77
8.1.200.0050.00517.23
8.1.190.0080.00017.63
8.1.180.0000.00818.10
8.1.170.0000.00818.66
8.1.160.0000.00722.16
8.1.150.0000.00718.58
8.1.140.0000.00717.47
8.1.130.0040.00417.75
8.1.120.0000.00717.39
8.1.110.0080.00017.47
8.1.100.0000.00717.43
8.1.90.0030.00617.52
8.1.80.0050.00317.48
8.1.70.0000.00717.42
8.1.60.0080.00017.66
8.1.50.0040.00417.56
8.1.40.0000.00817.59
8.1.30.0100.00017.52
8.1.20.0030.00517.69
8.1.10.0060.00317.59
8.1.00.0030.00617.60
8.0.300.0000.00818.77
8.0.290.0090.00016.73
8.0.280.0000.00818.54
8.0.270.0070.00017.30
8.0.260.0060.00016.87
8.0.250.0000.00717.01
8.0.240.0080.00017.11
8.0.230.0040.00417.10
8.0.220.0000.00716.94
8.0.210.0040.00417.05
8.0.200.0030.00317.07
8.0.190.0000.00717.06
8.0.180.0000.00817.08
8.0.170.0080.00017.03
8.0.160.0000.00817.06
8.0.150.0030.00616.94
8.0.140.0030.00517.06
8.0.130.0030.00313.47
8.0.120.0000.00816.98
8.0.110.0040.00417.08
8.0.100.0040.00417.05
8.0.90.0040.00417.10
8.0.80.0090.00617.03
8.0.70.0080.00016.88
8.0.60.0080.00017.07
8.0.50.0040.00416.91
8.0.30.0060.01317.04
8.0.20.0150.00417.40
8.0.10.0040.00417.04
8.0.00.0060.01316.83
7.4.330.0030.00315.00
7.4.320.0000.00616.54
7.4.300.0000.00616.61
7.4.290.0000.00716.55
7.4.280.0080.00016.62
7.4.270.0030.00316.63
7.4.260.0070.00013.29
7.4.250.0000.00816.62
7.4.240.0040.00416.55
7.4.230.0030.00316.51
7.4.220.0060.01016.55
7.4.210.0060.00916.67
7.4.200.0000.00716.57
7.4.190.0070.00016.72
7.4.160.0110.00416.69
7.4.150.0150.00417.40
7.4.140.0100.00717.86
7.4.130.0120.00516.56
7.4.120.0050.01616.54
7.4.110.0100.01016.71
7.4.100.0100.00716.60
7.4.90.0080.01116.52
7.4.80.0110.01119.39
7.4.70.0030.01416.47
7.4.60.0130.00916.63
7.4.50.0060.00316.34
7.4.40.0030.01422.77
7.4.30.0080.01316.56
7.4.00.0030.00914.94
7.3.330.0050.00013.46
7.3.320.0000.00513.59
7.3.310.0050.00316.52
7.3.300.0030.00316.43
7.3.290.0060.00916.41
7.3.280.0100.00716.44
7.3.270.0070.01117.40
7.3.260.0160.00316.66
7.3.250.0110.00716.55
7.3.240.0060.01016.46
7.3.230.0120.00616.65
7.3.210.0130.00316.58
7.3.200.0140.00319.39
7.3.190.0030.01416.64
7.3.180.0000.01516.51
7.3.170.0080.00816.42
7.3.160.0080.00816.47
7.3.120.0030.01014.69
7.2.330.0060.01216.79
7.2.320.0100.00616.77
7.2.310.0130.01016.62
7.2.300.0110.01216.80
7.2.290.0120.00316.55
7.2.60.0030.00916.89
7.1.200.0050.00315.83
7.1.70.0060.00317.01
7.1.60.0070.01719.32
7.1.50.0130.00717.02
7.1.00.0100.07022.36
7.0.200.0060.00316.73
7.0.140.0030.07321.95
7.0.70.0070.04319.93
7.0.60.0030.06320.02
7.0.50.0030.08020.31
7.0.40.0030.09020.09
7.0.30.0070.09020.08
7.0.20.0000.08020.07
7.0.10.0130.08320.16
7.0.00.0070.07320.17
5.6.280.0000.07321.11
5.6.220.0070.07720.65
5.6.210.0130.06320.76
5.6.200.0070.08320.95
5.6.190.0170.08321.19
5.6.180.0130.07320.96
5.6.170.0030.05320.98
5.6.160.0100.08021.07
5.6.150.0070.09021.06
5.6.140.0170.07320.96
5.6.130.0100.06721.07
5.6.120.0070.09021.04
5.6.110.0070.07321.00
5.6.100.0100.08321.06
5.6.90.0070.08020.92
5.6.80.0100.06720.53
5.6.70.0030.08020.33
5.6.60.0070.07320.43
5.6.50.0200.07020.53
5.6.40.0030.06020.46
5.6.30.0030.07320.41
5.6.20.0100.07720.46
5.6.10.0070.08020.54
5.6.00.0000.05320.36
5.5.360.0130.07720.50
5.5.350.0070.09020.44
5.5.340.0030.08720.84
5.5.330.0100.08020.89
5.5.320.0170.07320.79
5.5.310.0070.04320.66
5.5.300.0100.08020.80
5.5.290.0030.08720.88
5.5.280.0130.08020.84
5.5.270.0100.08720.85
5.5.260.0030.09720.82
5.5.250.0130.06720.66
5.5.240.0100.08320.26
5.5.230.0070.07020.15
5.5.220.0100.07720.11
5.5.210.0030.06720.25
5.5.200.0070.06720.17
5.5.190.0030.08320.12
5.5.180.0070.08320.19
5.5.160.0130.04720.25
5.5.150.0030.07020.19
5.5.140.0030.08720.19
5.5.130.0170.07020.24
5.5.120.0030.05720.22
5.5.110.0000.07320.11
5.5.100.0100.07720.09
5.5.90.0130.06020.02
5.5.80.0100.07720.11
5.5.70.0100.07319.93
5.5.60.0030.08020.10
5.5.50.0230.06020.11
5.5.40.0030.06020.16
5.5.30.0070.07019.96
5.5.20.0100.04320.09
5.5.10.0100.08020.05
5.5.00.0030.08020.05
5.4.450.0030.06319.42
5.4.440.0130.07319.41
5.4.430.0070.08019.55
5.4.420.0030.08319.20
5.4.410.0070.08319.04
5.4.400.0000.07719.13
5.4.390.0130.07319.13
5.4.380.0100.08019.04
5.4.370.0100.06319.20
5.4.360.0070.05019.09
5.4.350.0070.06319.05
5.4.340.0070.06319.09
5.4.320.0170.07319.04
5.4.310.0000.04719.04
5.4.300.0070.06019.12
5.4.290.0070.08018.84
5.4.280.0070.08018.89
5.4.270.0130.07019.16
5.4.260.0100.07319.23
5.4.250.0070.07019.21
5.4.240.0030.05019.04
5.4.230.0170.03019.13
5.4.220.0070.08019.02
5.4.210.0030.05718.87
5.4.200.0130.06019.08
5.4.190.0100.07718.89
5.4.180.0070.03719.17
5.4.170.0100.06719.12
5.4.160.0100.07719.06
5.4.150.0130.05719.02
5.4.140.0000.05316.43
5.4.130.0130.04016.45
5.4.120.0100.07316.42
5.4.110.0000.05016.56
5.4.100.0100.06716.32
5.4.90.0130.07016.36
5.4.80.0100.07316.47
5.4.70.0070.04716.38
5.4.60.0070.07316.48
5.4.50.0100.06316.27
5.4.40.0170.06316.42
5.4.30.0100.07316.29
5.4.20.0030.08016.49
5.4.10.0100.05316.34
5.4.00.0030.06315.87
5.3.290.0130.07714.73
5.3.280.0100.06714.66
5.3.270.0100.07014.68
5.3.260.0100.07014.59
5.3.250.0200.06714.54
5.3.240.0000.05314.68
5.3.230.0100.07014.56
5.3.220.0070.05714.72
5.3.210.0000.08314.50
5.3.200.0130.05314.50
5.3.190.0000.06314.67
5.3.180.0070.07014.57
5.3.170.0100.09014.53
5.3.160.0100.07314.68
5.3.150.0070.07314.51
5.3.140.0130.07014.65
5.3.130.0070.04014.65
5.3.120.0070.03714.65
5.3.110.0130.07014.58
5.3.100.0070.07713.98
5.3.90.0030.06014.15
5.3.80.0100.07314.17
5.3.70.0130.06714.05
5.3.60.0070.07714.07
5.3.50.0000.07313.94
5.3.40.0100.07314.09
5.3.30.0070.05013.93
5.3.20.0130.06713.69
5.3.10.0070.04713.59
5.3.00.0100.03013.57
5.2.170.0070.06012.22
5.2.160.0000.06712.22
5.2.150.0070.03712.22
5.2.140.0000.06312.22
5.2.130.0000.04712.22
5.2.120.0030.04012.22
5.2.110.0100.05712.22
5.2.100.0070.02712.22
5.2.90.0030.03012.22
5.2.80.0030.06712.22
5.2.70.0030.05712.22
5.2.60.0070.06012.22
5.2.50.0030.06312.22
5.2.40.0030.06712.22
5.2.30.0070.06012.22
5.2.20.0000.05012.22
5.2.10.0000.06012.22
5.2.00.0130.05312.22
5.1.60.0070.05312.22
5.1.50.0070.05312.22
5.1.40.0070.05012.22
5.1.30.0100.05312.22
5.1.20.0030.06012.22
5.1.10.0070.05312.22
5.1.00.0100.04712.22
5.0.50.0030.03712.22
5.0.40.0030.04712.22
5.0.30.0030.06312.22
5.0.20.0070.02712.22
5.0.10.0130.03012.22
5.0.00.0000.06712.22
4.4.90.0000.03712.22
4.4.80.0000.02712.22
4.4.70.0030.03312.22
4.4.60.0030.03312.22
4.4.50.0030.03712.22
4.4.40.0070.05312.22
4.4.30.0070.03012.22
4.4.20.0000.03312.22
4.4.10.0000.03012.22
4.4.00.0070.05012.22
4.3.110.0000.03712.22
4.3.100.0000.03012.22
4.3.90.0070.03012.22
4.3.80.0030.04712.22
4.3.70.0030.03312.22
4.3.60.0030.03312.22
4.3.50.0030.02712.22
4.3.40.0000.05712.22
4.3.30.0070.03312.22
4.3.20.0000.03712.22
4.3.10.0030.03312.22
4.3.00.0030.03312.22

preferences:
45.61 ms | 401 KiB | 5 Q