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) { 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.60.0090.00618.43
8.3.50.0140.00716.61
8.3.40.0110.01118.88
8.3.30.0090.00620.22
8.3.20.0070.00020.19
8.3.10.0000.00821.95
8.3.00.0080.00022.40
8.2.180.0120.00616.75
8.2.170.0040.01122.96
8.2.160.0080.00822.08
8.2.150.0050.00324.18
8.2.140.0120.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00420.81
8.2.110.0060.00322.20
8.2.100.0090.00317.91
8.2.90.0000.00719.22
8.2.80.0000.00819.39
8.2.70.0040.00417.63
8.2.60.0040.00417.92
8.2.50.0000.00818.07
8.2.40.0060.00319.88
8.2.30.0000.00719.44
8.2.20.0040.00417.79
8.2.10.0080.00017.64
8.2.00.0000.00817.77
8.1.270.0000.00823.99
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0090.00023.79
8.1.230.0080.00419.09
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0040.00417.35
8.1.190.0040.00417.53
8.1.180.0030.00519.01
8.1.170.0080.00018.65
8.1.160.0000.00720.61
8.1.150.0040.00418.57
8.1.140.0040.00417.40
8.1.130.0050.00317.81
8.1.120.0000.00817.42
8.1.110.0000.00817.30
8.1.100.0000.00717.27
8.1.90.0070.00317.39
8.1.80.0000.00717.41
8.1.70.0000.00717.31
8.1.60.0060.00317.57
8.1.50.0040.00417.49
8.1.40.0040.00417.38
8.1.30.0000.00817.52
8.1.20.0040.00417.55
8.1.10.0070.00017.45
8.1.00.0030.00617.29
8.0.300.0020.00518.77
8.0.290.0040.00417.18
8.0.280.0000.00718.46
8.0.270.0000.00817.21
8.0.260.0030.00316.86
8.0.250.0000.00717.01
8.0.240.0030.00616.93
8.0.230.0030.00316.92
8.0.220.0070.00016.95
8.0.210.0000.00716.94
8.0.200.0060.00017.00
8.0.190.0050.00217.01
8.0.180.0000.00717.00
8.0.170.0000.00816.96
8.0.160.0040.00416.96
8.0.150.0050.00216.81
8.0.140.0000.00716.90
8.0.130.0000.00513.39
8.0.120.0080.00016.98
8.0.110.0070.00016.94
8.0.100.0040.00416.85
8.0.90.0000.00716.81
8.0.80.0000.01517.01
8.0.70.0030.00516.86
8.0.60.0040.00416.84
8.0.50.0040.00416.82
8.0.30.0140.00516.93
8.0.20.0140.00517.40
8.0.10.0000.00816.82
8.0.00.0100.01016.60
7.4.330.0000.00615.05
7.4.320.0030.00316.38
7.4.300.0030.00316.51
7.4.290.0070.00016.49
7.4.280.0030.00316.44
7.4.270.0000.00716.44
7.4.260.0050.00013.23
7.4.250.0000.00716.38
7.4.240.0030.00316.45
7.4.230.0050.00216.30
7.4.220.0080.00816.52
7.4.210.0070.01016.44
7.4.200.0070.00016.49
7.4.190.0070.00016.52
7.4.160.0060.01016.41
7.4.150.0070.01117.40
7.4.140.0120.00817.86
7.4.130.0110.00716.50
7.4.120.0150.00416.50
7.4.110.0130.00716.29
7.4.100.0030.01316.55
7.4.90.0070.01316.46
7.4.80.0080.00819.39
7.4.70.0130.00316.43
7.4.60.0090.00616.49
7.4.50.0050.00316.49
7.4.40.0030.01222.77
7.4.30.0130.01016.48
7.4.10.0070.01014.82
7.4.00.0020.01415.07
7.3.330.0000.00513.52
7.3.320.0030.00313.30
7.3.310.0000.00716.54
7.3.300.0030.00316.49
7.3.290.0030.01016.38
7.3.280.0100.00816.43
7.3.270.0100.00717.40
7.3.260.0160.00616.37
7.3.250.0100.00916.47
7.3.240.0040.01216.58
7.3.230.0090.00916.45
7.3.210.0000.01716.36
7.3.200.0070.01119.39
7.3.190.0090.00916.34
7.3.180.0100.00616.40
7.3.170.0140.00316.38
7.3.160.0080.01116.51
7.3.130.0070.01114.91
7.3.120.0060.00914.80
7.3.110.0080.00814.89
7.3.100.0060.01014.65
7.3.90.0080.00914.79
7.3.80.0050.00814.99
7.3.70.0060.00914.63
7.3.60.0090.00614.75
7.3.50.0080.00814.72
7.3.40.0050.00814.66
7.3.30.0070.00514.83
7.3.20.0080.00716.62
7.3.10.0020.01216.52
7.3.00.0100.00516.57
7.2.330.0030.01516.73
7.2.320.0040.01816.46
7.2.310.0100.01416.61
7.2.300.0060.01216.46
7.2.290.0090.01316.65
7.2.260.0060.01215.18
7.2.250.0050.01314.95
7.2.240.0070.00815.07
7.2.230.0090.00815.03
7.2.220.0050.01014.91
7.2.210.0100.00614.78
7.2.200.0070.00714.96
7.2.190.0090.00715.04
7.2.180.0040.00914.92
7.2.170.0060.01114.94
7.2.160.0060.00814.92
7.2.150.0100.00316.80
7.2.140.0030.01016.76
7.2.130.0070.00716.78
7.2.120.0080.00716.87
7.2.110.0050.00916.78
7.2.100.0080.00816.72
7.2.90.0070.00916.78
7.2.80.0050.00816.77
7.2.70.0060.01016.89
7.2.60.0040.00916.89
7.2.50.0040.00816.85
7.2.40.0020.01116.77
7.2.30.0050.00916.83
7.2.20.0050.00916.93
7.2.10.0060.00816.76
7.2.00.0050.00917.25
7.1.330.0050.00815.63
7.1.320.0050.00915.56
7.1.310.0070.00615.61
7.1.300.0070.00815.74
7.1.290.0050.00915.67
7.1.280.0070.00615.75
7.1.270.0030.01015.62
7.1.260.0050.01015.72
7.1.250.0040.00915.68
7.1.240.0000.01515.83
7.1.230.0140.00015.57
7.1.220.0110.00615.79
7.1.210.0070.00715.78
7.1.200.0030.00615.63
7.1.190.0040.00415.88
7.1.180.0070.00715.53
7.1.170.0070.00415.80
7.1.160.0100.00715.73
7.1.150.0000.01215.68
7.1.140.0100.00715.60
7.1.130.0030.00915.80
7.1.120.0030.00615.82
7.1.110.0000.01515.56
7.1.100.0070.00517.08
7.1.90.0120.00015.72
7.1.80.0040.01215.79
7.1.70.0030.00916.27
7.1.60.0050.01417.48
7.1.50.0050.01116.38
7.1.40.0070.00315.63
7.1.30.0040.01115.78
7.1.20.0040.00415.77
7.1.10.0030.00615.55
7.1.00.0050.03818.99
7.0.330.0040.00715.43
7.0.320.0000.01415.13
7.0.310.0030.00915.41
7.0.300.0070.00715.54
7.0.290.0030.00915.54
7.0.280.0040.00815.56
7.0.270.0070.00715.58
7.0.260.0060.00315.50
7.0.250.0120.00315.43
7.0.240.0080.00015.56
7.0.230.0030.00915.33
7.0.220.0040.01215.25
7.0.210.0130.00015.49
7.0.200.0030.00816.03
7.0.190.0070.00715.36
7.0.180.0080.00615.46
7.0.170.0080.00415.27
7.0.160.0040.01115.15
7.0.150.0030.00915.41
7.0.140.0070.03818.84
7.0.130.0100.00315.15
7.0.120.0030.01015.10
7.0.110.0000.00815.54
7.0.100.0110.00015.56
7.0.90.0060.00915.34
7.0.80.0070.03017.61
7.0.70.0080.04517.61
7.0.60.0030.03317.77
7.0.50.0070.02718.05
7.0.40.0100.03716.79
7.0.30.0050.03216.77
7.0.20.0020.04816.82
7.0.10.0150.03216.80
7.0.00.0110.03916.83
5.6.400.0070.00414.14
5.6.390.0120.00314.26
5.6.380.0030.01414.39
5.6.370.0060.00914.10
5.6.360.0070.01014.12
5.6.350.0100.00714.18
5.6.340.0000.01314.16
5.6.330.0000.00814.44
5.6.320.0080.00614.45
5.6.310.0000.01414.32
5.6.300.0090.00614.08
5.6.290.0060.00314.36
5.6.280.0050.03917.63
5.6.270.0060.00814.36
5.6.260.0060.00313.98
5.6.250.0030.01013.99
5.6.240.0100.01014.32
5.6.230.0120.04517.46
5.6.220.0110.04017.40
5.6.210.0110.04017.36
5.6.200.0110.03117.44
5.6.190.0130.04217.62
5.6.180.0060.03917.73
5.6.170.0100.02517.67
5.6.160.0160.02017.49
5.6.150.0030.04817.56
5.6.140.0050.04717.61
5.6.130.0030.03017.65
5.6.120.0100.03317.81
5.6.110.0040.02817.60
5.6.100.0000.04917.73
5.6.90.0100.03617.54
5.6.80.0050.03317.39
5.6.70.0140.03517.28
5.6.60.0080.02817.46
5.6.50.0070.04217.20
5.6.40.0070.04417.36
5.6.30.0110.02617.26
5.6.20.0020.04217.25
5.6.10.0080.04117.40
5.6.00.0100.03817.20
5.5.380.0030.00714.18
5.5.370.0060.02517.42
5.5.360.0020.04917.30
5.5.350.0060.03517.42
5.5.340.0030.04417.40
5.5.330.0050.03317.41
5.5.320.0050.04717.55
5.5.310.0040.02917.37
5.5.300.0080.04017.50
5.5.290.0090.04517.62
5.5.280.0070.02517.52
5.5.270.0090.03917.52
5.5.260.0130.03817.44
5.5.250.0110.02417.54
5.5.240.0110.04017.14
5.5.230.0030.04416.98
5.5.220.0120.04117.23
5.5.210.0110.03217.03
5.5.200.0050.04517.20
5.5.190.0030.04317.20
5.5.180.0020.04217.19
5.5.170.0000.01214.32
5.5.160.0100.02216.96
5.5.150.0130.02817.20
5.5.140.0090.03517.08
5.5.130.0030.02717.26
5.5.120.0050.02617.13
5.5.110.0020.04017.30
5.5.100.0030.04517.03
5.5.90.0070.04117.16
5.5.80.0090.03716.99
5.5.70.0070.04317.21
5.5.60.0030.04717.22
5.5.50.0050.04017.08
5.5.40.0070.04117.07
5.5.30.0030.04517.08
5.5.20.0040.04716.94
5.5.10.0050.03016.85
5.5.00.0020.04816.91
5.4.450.0070.03015.24
5.4.440.0050.04515.15
5.4.430.0080.03815.25
5.4.420.0050.02215.38
5.4.410.0040.04115.11
5.4.400.0070.04215.08
5.4.390.0050.04314.99
5.4.380.0060.03915.11
5.4.370.0070.04015.04
5.4.360.0080.03915.08
5.4.350.0020.04215.16
5.4.340.0090.03415.07
5.4.330.0030.00711.12
5.4.320.0100.03615.17
5.4.310.0040.04115.03
5.4.300.0030.04015.17
5.4.290.0100.02115.03
5.4.280.0070.02015.01
5.4.270.0040.04115.17
5.4.260.0020.03315.11
5.4.250.0000.03615.08
5.4.240.0050.04115.07
5.4.230.0120.03415.12
5.4.220.0020.03315.03
5.4.210.0020.02715.12
5.4.200.0030.04015.12
5.4.190.0090.03715.01
5.4.180.0020.04215.13
5.4.170.0030.04314.98
5.4.160.0020.04315.14
5.4.150.0050.04214.97
5.4.140.0080.03913.73
5.4.130.0050.03713.73
5.4.120.0050.02813.79
5.4.110.0080.03913.75
5.4.100.0060.03013.78
5.4.90.0030.03713.81
5.4.80.0030.02413.72
5.4.70.0080.03313.75
5.4.60.0070.02413.72
5.4.50.0090.03413.80
5.4.40.0070.04113.75
5.4.30.0030.04213.78
5.4.20.0060.02613.77
5.4.10.0060.02013.78
5.4.00.0080.03513.46
5.3.290.0060.04012.86
5.3.280.0060.03812.86
5.3.270.0040.02512.86
5.3.260.0100.03512.93
5.3.250.0030.03212.86
5.3.240.0040.04412.90
5.3.230.0020.02712.87
5.3.220.0060.04312.81
5.3.210.0070.03512.81
5.3.200.0070.03212.86
5.3.190.0030.04112.88
5.3.180.0050.04012.84
5.3.170.0020.02512.92
5.3.160.0070.04012.88
5.3.150.0040.03212.85
5.3.140.0080.03412.86
5.3.130.0110.03612.86
5.3.120.0030.03512.88
5.3.110.0070.02012.84
5.3.100.0050.04112.65
5.3.90.0010.03012.54
5.3.80.0090.03712.60
5.3.70.0000.03212.53
5.3.60.0020.02712.58
5.3.50.0050.04212.57
5.3.40.0080.03712.60
5.3.30.0050.03512.48
5.3.20.0060.02312.42
5.3.10.0040.03912.45
5.3.00.0050.02912.40
5.2.170.0030.06011.70
5.2.160.0100.05711.70
5.2.150.0070.06311.70
5.2.140.0000.04711.70
5.2.130.0100.02711.70
5.2.120.0000.06311.70
5.2.110.0170.05311.70
5.2.100.0000.06311.70
5.2.90.0100.05311.70
5.2.80.0100.05011.70
5.2.70.0170.05311.70
5.2.60.0100.04011.70
5.2.50.0070.04711.70
5.2.40.0000.06011.70
5.2.30.0030.04711.70
5.2.20.0030.04711.70
5.2.10.0130.05711.70
5.2.00.0030.06011.70
5.1.60.0030.03011.70
5.1.50.0070.05311.70
5.1.40.0030.05711.70
5.1.30.0070.04011.70
5.1.20.0030.05311.70
5.1.10.0100.04711.70
5.1.00.0070.05011.70
5.0.50.0030.04011.70
5.0.40.0000.03311.70
5.0.30.0070.06011.70
5.0.20.0070.04011.70
5.0.10.0000.04311.70
5.0.00.0070.06011.70
4.4.90.0000.03011.70
4.4.80.0070.03011.70
4.4.70.0030.03311.70
4.4.60.0000.03711.70
4.4.50.0000.03711.70
4.4.40.0000.05711.70
4.4.30.0000.03711.70
4.4.20.0030.02011.70
4.4.10.0070.03011.70
4.4.00.0030.05011.70
4.3.110.0030.03311.70
4.3.100.0000.03711.70
4.3.90.0030.03311.70
4.3.80.0170.03011.70
4.3.70.0000.03711.70
4.3.60.0000.02711.70
4.3.50.0000.02711.70
4.3.40.0030.02311.70
4.3.30.0000.03011.70
4.3.20.0070.02311.70
4.3.10.0000.03711.70
4.3.00.0000.03011.70

preferences:
47.1 ms | 400 KiB | 5 Q