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, string $mode, int $options, string &$opened_path) { exit($path . "\n" . $mode . "\n" . $options . "\n" . $opened_path); //$this->host = parse_url($path, PHP_URL_HOST); //$this->fileHandle = 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.40.0070.00718.97
8.3.30.0110.00720.21
8.3.20.0030.00520.16
8.3.10.0080.00021.92
8.3.00.0080.00022.46
8.2.170.0070.00722.96
8.2.160.0120.00321.96
8.2.150.0040.00424.18
8.2.140.0000.00924.66
8.2.130.0000.00726.16
8.2.120.0040.00420.79
8.2.110.0000.01022.25
8.2.100.0080.00317.91
8.2.90.0030.00519.07
8.2.80.0040.00419.38
8.2.70.0040.00417.50
8.2.60.0000.00818.04
8.2.50.0050.00318.07
8.2.40.0050.00519.82
8.2.30.0050.00319.44
8.2.20.0040.00417.65
8.2.10.0000.00917.71
8.2.00.0040.00417.62
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0000.01023.80
8.1.230.0080.00419.16
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0080.00017.23
8.1.190.0060.00317.54
8.1.180.0030.00519.01
8.1.170.0030.00518.59
8.1.160.0040.00418.79
8.1.150.0080.00018.55
8.1.140.0040.00417.33
8.1.130.0030.00317.74
8.1.120.0000.00717.43
8.1.110.0040.00417.22
8.1.100.0000.00717.41
8.1.90.0070.00317.28
8.1.80.0040.00417.32
8.1.70.0050.00217.33
8.1.60.0040.00417.43
8.1.50.0070.00017.34
8.1.40.0000.00817.39
8.1.30.0000.00817.63
8.1.20.0000.00817.55
8.1.10.0070.00017.46
8.1.00.0000.00717.51
8.0.300.0040.00418.77
8.0.290.0040.00417.16
8.0.280.0030.00318.52
8.0.270.0030.00517.29
8.0.260.0050.00316.82
8.0.250.0000.00716.94
8.0.240.0040.00416.95
8.0.230.0000.00716.91
8.0.220.0000.00716.88
8.0.210.0000.00717.02
8.0.200.0000.00617.05
8.0.190.0040.00417.05
8.0.180.0080.00017.07
8.0.170.0000.00717.05
8.0.160.0070.00017.10
8.0.150.0000.00716.83
8.0.140.0070.00316.84
8.0.130.0000.00513.45
8.0.120.0080.00016.93
8.0.110.0040.00416.99
8.0.100.0000.00716.82
8.0.90.0040.00416.80
8.0.80.0090.00616.91
8.0.70.0040.00417.09
8.0.60.0040.00416.76
8.0.50.0040.00416.84
8.0.30.0070.01217.08
8.0.20.0150.00617.40
8.0.10.0030.00517.04
8.0.00.0040.01416.77
7.4.330.0020.00215.00
7.4.320.0060.00016.54
7.4.300.0000.00616.45
7.4.290.0030.00316.61
7.4.280.0000.00716.51
7.4.270.0070.00016.56
7.4.260.0040.00413.17
7.4.250.0030.00616.39
7.4.240.0040.00416.46
7.4.230.0000.00716.59
7.4.220.0070.01016.47
7.4.210.0100.00616.56
7.4.200.0030.00316.31
7.4.190.0030.00316.44
7.4.160.0100.01016.42
7.4.150.0090.00917.40
7.4.140.0100.00717.86
7.4.130.0100.00716.42
7.4.120.0110.01116.40
7.4.110.0110.00616.46
7.4.100.0170.00016.53
7.4.90.0000.01716.59
7.4.80.0030.01519.39
7.4.70.0160.00616.45
7.4.60.0040.01216.54
7.4.50.0040.00416.46
7.4.40.0070.00722.77
7.4.30.0140.00716.45
7.4.10.0060.01214.83
7.4.00.0120.00615.13
7.3.330.0050.00013.40
7.3.320.0030.00313.43
7.3.310.0040.00416.46
7.3.300.0000.00616.46
7.3.290.0120.00616.39
7.3.280.0060.01316.42
7.3.270.0070.01017.40
7.3.260.0070.01516.37
7.3.250.0120.00516.64
7.3.240.0150.00316.32
7.3.230.0130.00416.46
7.3.210.0030.01416.59
7.3.200.0100.01019.39
7.3.190.0070.01616.56
7.3.180.0100.00716.36
7.3.170.0150.00316.54
7.3.160.0030.01416.39
7.3.130.0090.00914.93
7.3.120.0090.00614.91
7.3.110.0090.00814.88
7.3.100.0060.00914.78
7.3.90.0080.00814.90
7.3.80.0080.00514.63
7.3.70.0020.01214.97
7.3.60.0050.00814.81
7.3.50.0060.00614.96
7.3.40.0050.00914.78
7.3.30.0030.01014.94
7.3.20.0040.01016.64
7.3.10.0090.00716.48
7.3.00.0040.00916.57
7.2.330.0060.01316.64
7.2.320.0030.01316.38
7.2.310.0100.00716.66
7.2.300.0110.00616.67
7.2.290.0070.01316.65
7.2.260.0020.01714.94
7.2.250.0020.01514.94
7.2.240.0030.01214.82
7.2.230.0080.01215.05
7.2.220.0070.00814.73
7.2.210.0030.01114.87
7.2.200.0030.01214.64
7.2.190.0040.01114.86
7.2.180.0020.01114.77
7.2.170.0110.00514.88
7.2.160.0020.01414.96
7.2.150.0030.01016.73
7.2.140.0080.00716.85
7.2.130.0050.00916.89
7.2.120.0050.00816.71
7.2.110.0030.01116.78
7.2.100.0080.00816.69
7.2.90.0020.01116.71
7.2.80.0050.01116.86
7.2.70.0070.00916.82
7.2.60.0050.01016.78
7.2.50.0080.00816.62
7.2.40.0070.00716.93
7.2.30.0070.00516.76
7.2.20.0030.01216.69
7.2.10.0090.00616.86
7.2.00.0020.00917.69
7.1.330.0050.01015.70
7.1.320.0070.01115.81
7.1.310.0000.01315.58
7.1.300.0040.01215.82
7.1.290.0040.00715.71
7.1.280.0050.01015.58
7.1.270.0080.00515.50
7.1.260.0070.00815.66
7.1.250.0060.00615.70
7.1.240.0050.00815.64
7.1.230.0060.01015.71
7.1.220.0000.01015.86
7.1.210.0080.00615.54
7.1.200.0070.00415.65
7.1.190.0080.00615.54
7.1.180.0020.01115.80
7.1.170.0100.00715.51
7.1.160.0050.00815.75
7.1.150.0070.00715.74
7.1.140.0060.00915.49
7.1.130.0050.01115.45
7.1.120.0030.00615.69
7.1.110.0020.00915.83
7.1.100.0050.00916.42
7.1.90.0060.00715.82
7.1.80.0060.00715.46
7.1.70.0030.01216.24
7.1.60.0070.00916.87
7.1.50.0080.00616.19
7.1.40.0060.00715.67
7.1.30.0030.00915.69
7.1.20.0070.00615.70
7.1.10.0090.00315.64
7.1.00.0030.02017.92
7.0.330.0070.00415.41
7.0.320.0050.00515.24
7.0.310.0080.00315.10
7.0.300.0090.00715.24
7.0.290.0040.00915.10
7.0.280.0060.00715.09
7.0.270.0080.00715.36
7.0.260.0050.00715.39
7.0.250.0050.00515.57
7.0.240.0000.01115.48
7.0.230.0090.00315.49
7.0.220.0100.00215.27
7.0.210.0050.00715.30
7.0.200.0060.00415.73
7.0.190.0060.00715.46
7.0.180.0060.00515.30
7.0.170.0030.01115.27
7.0.160.0080.00315.34
7.0.150.0030.01115.37
7.0.140.0070.02917.56
7.0.130.0060.00315.38
7.0.120.0080.00315.58
7.0.110.0070.00615.26
7.0.100.0080.03116.87
7.0.90.0020.03816.96
7.0.80.0070.02416.84
7.0.70.0040.03016.80
7.0.60.0060.02616.87
7.0.50.0040.02017.14
7.0.40.0050.01715.62
7.0.30.0090.01815.61
7.0.20.0070.01715.65
7.0.10.0030.01815.68
7.0.00.0040.02015.56
5.6.400.0010.01014.47
5.6.390.0090.00414.31
5.6.380.0080.00814.30
5.6.370.0060.00314.11
5.6.360.0050.00914.22
5.6.350.0020.01014.26
5.6.340.0020.00714.20
5.6.330.0040.01414.03
5.6.320.0070.00714.06
5.6.310.0060.00814.13
5.6.300.0080.00614.03
5.6.290.0050.00814.19
5.6.280.0050.02916.46
5.6.270.0070.00514.21
5.6.260.0070.00714.09
5.6.250.0100.02716.32
5.6.240.0060.03116.30
5.6.230.0030.03116.27
5.6.220.0060.03416.33
5.6.210.0050.02616.22
5.6.200.0030.02016.52
5.6.190.0050.02116.44
5.6.180.0070.02516.35
5.6.170.0060.02016.44
5.6.160.0050.01816.32
5.6.150.0060.01916.43
5.6.140.0040.01916.54
5.6.130.0080.01816.47
5.6.120.0050.02116.54
5.6.110.0050.02016.50
5.6.100.0030.03216.47
5.6.90.0070.02416.28
5.6.80.0060.01716.16
5.6.70.0100.02816.22
5.6.60.0030.01816.07
5.6.50.0060.01416.12
5.6.40.0070.01616.21
5.6.30.0030.01916.28
5.6.20.0040.02216.14
5.6.10.0010.02116.26
5.6.00.0080.03016.21
5.5.380.0070.03116.07
5.5.370.0070.02816.11
5.5.360.0080.03216.29
5.5.350.0070.02916.24
5.5.340.0080.01616.38
5.5.330.0040.01916.25
5.5.320.0010.02116.36
5.5.310.0060.01716.24
5.5.300.0060.02516.31
5.5.290.0020.02116.35
5.5.280.0060.01816.47
5.5.270.0050.01616.41
5.5.260.0040.01916.34
5.5.250.0030.01916.13
5.5.240.0060.01916.07
5.5.230.0080.01516.09
5.5.220.0040.01716.20
5.5.210.0070.01716.18
5.5.200.0080.01716.11
5.5.190.0040.01716.06
5.5.180.0090.01616.08
5.5.170.0050.01013.72
5.5.160.0070.03015.93
5.5.150.0050.03115.92
5.5.140.0090.02915.98
5.5.130.0080.02915.97
5.5.120.0040.03415.93
5.5.110.0100.03016.08
5.5.100.0090.03016.02
5.5.90.0020.02616.11
5.5.80.0060.01616.09
5.5.70.0020.03216.04
5.5.60.0050.02716.06
5.5.50.0030.03116.12
5.5.40.0070.03016.04
5.5.30.0050.03216.02
5.5.20.0070.02815.92
5.5.10.0080.03015.96
5.5.00.0130.02315.76
5.4.450.0050.01513.94
5.4.440.0050.01514.01
5.4.430.0050.01514.03
5.4.420.0050.02013.98
5.4.410.0030.01713.88
5.4.400.0040.01613.69
5.4.390.0030.01613.83
5.4.380.0070.01413.86
5.4.370.0020.01413.85
5.4.360.0060.01513.88
5.4.350.0080.01113.79
5.4.340.0050.01513.67
5.4.330.0050.00611.15
5.4.320.0070.03013.84
5.4.310.0030.02313.79
5.4.300.0060.02813.84
5.4.290.0050.03213.89
5.4.280.0090.02913.77
5.4.270.0060.02713.77
5.4.260.0070.02313.84
5.4.250.0050.02813.84
5.4.240.0050.01713.93
5.4.230.0050.03013.89
5.4.220.0050.02813.84
5.4.210.0070.02213.83
5.4.200.0080.02413.82
5.4.190.0070.01413.88
5.4.180.0050.01413.88
5.4.170.0080.02713.84
5.4.160.0050.03113.79
5.4.150.0060.02713.84
5.4.140.0040.02913.00
5.4.130.0040.02913.03
5.4.120.0050.02212.96
5.4.110.0060.02912.96
5.4.100.0030.02912.94
5.4.90.0040.02813.03
5.4.80.0020.03113.00
5.4.70.0060.02612.95
5.4.60.0070.02912.88
5.4.50.0080.02912.90
5.4.40.0070.02512.97
5.4.30.0080.02112.90
5.4.20.0090.02512.94
5.4.10.0070.02512.93
5.4.00.0020.02912.77
5.3.290.0040.02412.25
5.3.280.0090.02012.13
5.3.270.0080.02712.26
5.3.260.0060.02512.31
5.3.250.0090.02412.26
5.3.240.0060.02412.18
5.3.230.0070.03012.23
5.3.220.0060.02812.07
5.3.210.0040.02812.19
5.3.200.0060.02712.17
5.3.190.0040.02712.17
5.3.180.0030.02412.22
5.3.170.0040.02712.13
5.3.160.0010.02412.24
5.3.150.0070.02512.21
5.3.140.0020.02012.15
5.3.130.0050.03012.17
5.3.120.0110.02512.13
5.3.110.0030.01912.20
5.3.100.0030.03011.98
5.3.90.0050.02712.06
5.3.80.0030.02711.97
5.3.70.0040.02411.97
5.3.60.0020.02812.00
5.3.50.0070.02711.96
5.3.40.0020.03211.93
5.3.30.0030.02512.00
5.3.20.0040.02811.93
5.3.10.0070.02611.84
5.3.00.0050.02411.76
5.2.170.0030.06011.22
5.2.160.0070.06011.21
5.2.150.0030.06711.21
5.2.140.0030.05711.16
5.2.130.0100.02011.18
5.2.120.0070.05711.18
5.2.110.0070.04311.25
5.2.100.0100.02011.17
5.2.90.0030.03011.11
5.2.80.0030.06311.17
5.2.70.0100.05710.97
5.2.60.0030.06311.07
5.2.50.0070.05711.14
5.2.40.0000.04310.93
5.2.30.0000.03310.92
5.2.20.0070.05711.04
5.2.10.0130.05010.79
5.2.00.0070.05310.65
5.1.60.0030.04710.09
5.1.50.0030.05710.04
5.1.40.0130.04710.07
5.1.30.0070.05310.42
5.1.20.0070.05710.29
5.1.10.0130.04710.17
5.1.00.0000.05310.16
5.0.50.0130.0309.93
5.0.40.0100.0379.93
5.0.30.0030.0379.93
5.0.20.0030.0409.93
5.0.10.0070.0409.93
5.0.00.0030.0439.93
4.4.90.0030.0209.93
4.4.80.0030.0309.93
4.4.70.0070.0339.93
4.4.60.0000.0409.93
4.4.50.0030.0339.93
4.4.40.0000.0539.93
4.4.30.0030.0179.93
4.4.20.0000.0379.93
4.4.10.0000.0379.93
4.4.00.0030.0579.93
4.3.110.0030.0379.93
4.3.100.0030.0339.93
4.3.90.0070.0309.93
4.3.80.0000.0539.93
4.3.70.0000.0309.93
4.3.60.0070.0279.93
4.3.50.0070.0179.93
4.3.40.0070.0509.93
4.3.30.0000.0379.93
4.3.20.0000.0379.93
4.3.10.0000.0379.93
4.3.00.0000.0379.93

preferences:
44 ms | 400 KiB | 5 Q