3v4l.org

run code in 300+ PHP versions simultaneously
<?php class File { // "Resource(stream)" isn't all that useful private $fp; // But all the stream meta data is public function __debugInfo() { return $this->fp ? stream_get_meta_data($fp) : []; } public function open($filename, $mode = 'r'){ $this->fp = fopen($filename, $mode); } } $f = new File; var_dump($f); // object(File)#1 { } $f->open('http://php.net'); var_dump($f); /* object(File)#1 { ["wrapper_type"]=> string(4) "http" ["stream_type"]=> string(10) "tcp_socket" etc... */

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.0110.01118.68
8.3.50.0090.00921.39
8.3.40.0120.00319.08
8.3.30.0150.00620.46
8.3.20.0090.00020.68
8.3.10.0060.00322.47
8.3.00.0040.01121.07
8.2.180.0150.00616.88
8.2.170.0070.00722.96
8.2.160.0070.00720.70
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.01126.16
8.2.120.0040.00419.66
8.2.110.0140.00722.38
8.2.100.0090.00318.03
8.2.90.0000.00818.16
8.2.80.0070.00217.97
8.2.70.0040.00417.63
8.2.60.0030.00618.05
8.2.50.0060.00318.07
8.2.40.0030.00518.45
8.2.30.0050.00518.24
8.2.20.0060.00317.79
8.2.10.0080.00017.84
8.2.00.0030.00617.73
8.1.280.0210.00025.92
8.1.270.0100.01024.66
8.1.260.0060.00326.35
8.1.250.0050.00328.09
8.1.240.0070.00322.78
8.1.230.0040.00821.16
8.1.220.0030.00517.88
8.1.210.0070.00319.08
8.1.200.0000.00917.36
8.1.190.0050.00317.43
8.1.180.0050.00319.26
8.1.170.0030.00518.74
8.1.160.0000.00822.34
8.1.150.0040.00418.82
8.1.140.0050.00217.63
8.1.130.0000.00717.95
8.1.120.0040.00417.66
8.1.110.0040.00417.54
8.1.100.0000.00817.64
8.1.90.0050.00217.42
8.1.80.0030.00517.46
8.1.70.0040.00417.63
8.1.60.0030.00517.71
8.1.50.0000.00817.63
8.1.40.0000.00817.73
8.1.30.0000.00817.82
8.1.20.0040.00417.77
8.1.10.0080.00017.63
8.1.00.0050.00317.46
8.0.300.0040.00420.29
8.0.290.0040.00417.43
8.0.280.0030.00318.64
8.0.270.0000.00717.37
8.0.260.0000.00717.13
8.0.250.0030.00317.11
8.0.240.0060.00317.15
8.0.230.0030.00317.21
8.0.220.0040.00416.98
8.0.210.0000.00717.08
8.0.200.0000.00617.19
8.0.190.0090.00017.10
8.0.180.0040.00417.20
8.0.170.0000.00917.08
8.0.160.0000.00717.02
8.0.150.0030.00517.03
8.0.140.0030.00317.15
8.0.130.0050.00013.53
8.0.120.0040.00417.11
8.0.110.0040.00417.09
8.0.100.0080.00017.04
8.0.90.0080.00017.20
8.0.80.0060.00917.17
8.0.70.0080.00017.13
8.0.60.0080.00017.07
8.0.50.0080.00017.27
8.0.30.0110.00917.27
8.0.20.0120.01517.47
8.0.10.0050.00317.16
8.0.00.0110.01117.08
7.4.330.0060.00015.36
7.4.320.0030.00316.62
7.4.300.0000.00716.66
7.4.290.0040.00416.61
7.4.280.0000.00716.73
7.4.270.0030.00316.73
7.4.260.0000.00916.72
7.4.250.0040.00416.69
7.4.240.0050.00316.83
7.4.230.0040.00416.55
7.4.220.0090.00916.84
7.4.210.0070.01216.84
7.4.200.0000.00816.87
7.4.190.0080.00016.67
7.4.160.0060.01116.79
7.4.150.0120.00917.40
7.4.140.0110.01217.86
7.4.130.0140.00716.80
7.4.120.0120.00416.73
7.4.110.0090.00916.84
7.4.100.0120.00616.66
7.4.90.0130.00616.78
7.4.80.0120.00619.39
7.4.70.0090.00916.75
7.4.60.0090.00916.61
7.4.50.0040.00416.68
7.4.40.0110.00722.77
7.4.30.0090.00916.77
7.4.00.0090.00815.28
7.3.330.0050.00013.46
7.3.320.0000.00513.50
7.3.310.0040.00416.72
7.3.300.0060.00316.68
7.3.290.0100.01016.70
7.3.280.0100.01116.67
7.3.270.0160.00617.40
7.3.260.0140.00616.60
7.3.250.0110.01116.75
7.3.240.0120.00616.74
7.3.230.0070.01116.68
7.3.210.0070.01016.63
7.3.200.0100.01019.39
7.3.190.0110.00616.57
7.3.180.0060.00916.39
7.3.170.0100.00616.66
7.3.160.0030.01616.50
7.3.120.0040.01414.89
7.3.110.0120.00815.09
7.3.100.0120.00414.75
7.3.90.0060.00314.82
7.3.80.0130.00615.15
7.3.70.0140.00014.81
7.3.60.0070.00715.17
7.3.50.0070.00714.96
7.3.40.0000.01314.80
7.3.30.0030.00614.68
7.3.20.0030.01216.95
7.3.10.0090.00616.57
7.3.00.0030.01016.88
7.2.330.0100.01516.91
7.2.320.0100.01016.61
7.2.310.0060.01216.86
7.2.300.0030.01416.61
7.2.290.0100.00716.79
7.2.250.0100.01015.41
7.2.240.0140.00715.46
7.2.230.0040.01515.48
7.2.220.0000.01514.99
7.2.210.0040.01415.20
7.2.200.0030.01215.10
7.2.190.0060.01315.14
7.2.180.0070.01015.41
7.2.170.0030.01715.16
7.2.60.0090.00316.89
7.2.00.0070.00719.70
7.1.330.0140.00416.16
7.1.320.0070.01015.93
7.1.310.0080.00816.24
7.1.300.0040.01515.98
7.1.290.0070.01316.11
7.1.280.0040.00716.16
7.1.270.0070.00716.01
7.1.260.0080.00416.02
7.1.200.0030.00816.09
7.1.100.0040.00818.55
7.1.70.0030.00517.56
7.1.60.0130.01319.21
7.1.50.0120.00917.29
7.1.00.0030.04722.66
7.0.200.0760.00015.21
7.0.140.0070.07022.34
7.0.60.0100.07720.20
7.0.50.0030.04018.08
7.0.40.0070.09020.54
7.0.30.0200.04020.45
7.0.20.0370.07320.65
7.0.10.0230.04020.56
7.0.00.0030.04720.46
5.6.280.0030.07721.30
5.6.210.0030.08320.92
5.6.200.0100.08318.43
5.6.190.0130.08321.05
5.6.180.0230.03720.95
5.6.170.0270.08320.89
5.6.160.0100.08720.85
5.6.150.0000.05018.54
5.6.140.0170.06718.47
5.6.130.0100.08318.56
5.6.120.0070.06021.50
5.6.110.0100.07321.54
5.6.100.0070.08321.49
5.6.90.0130.07321.41
5.6.80.0200.06720.91
5.6.70.0200.08020.64
5.5.350.0270.07320.68
5.5.340.0130.07318.42
5.5.330.0170.07320.82
5.5.320.0130.05020.62
5.5.310.0200.05320.63
5.5.300.0070.03718.32
5.5.290.0070.08018.46
5.5.280.0100.07721.31
5.5.270.0030.09021.17
5.5.260.0070.09321.19
5.5.250.0170.07321.11
5.5.240.0100.06320.48
5.4.450.0100.06019.82
5.4.440.0800.05719.64
5.4.430.0970.06019.70
5.4.420.1130.05719.77
5.4.410.0700.06019.73
5.4.400.0570.06319.07
5.4.390.0600.04719.16
5.4.380.0330.04719.05
5.4.370.0330.05319.08
5.4.360.0400.04718.78
5.4.350.0050.04612.21
5.4.340.0070.03912.21
5.4.320.0060.03712.70
5.4.310.0080.03712.70
5.4.300.0060.04212.70
5.4.290.0050.04712.69
5.4.280.0070.03412.59
5.4.270.0110.03312.59
5.4.260.0050.03812.59
5.4.250.0130.04318.89
5.4.240.0170.04719.16
5.4.230.0130.05018.80
5.4.220.0100.05019.17
5.4.210.0200.04019.14
5.4.200.0100.08019.03
5.4.190.0070.07719.22
5.4.180.0130.05019.15
5.4.170.0030.05719.23
5.4.160.0070.05319.06
5.4.150.0100.06019.23
5.4.140.0100.05016.73
5.4.130.0000.05716.63
5.4.120.0130.05016.80
5.4.110.0170.06316.74
5.4.100.0030.05716.84
5.4.90.0070.06716.75
5.4.80.0130.04016.73
5.4.70.0170.04016.73
5.4.60.0170.06716.66
5.4.50.0170.04016.71
5.4.40.0030.05316.66
5.4.30.0030.05316.71
5.4.20.0230.03316.60
5.4.10.0130.04316.71
5.4.00.0070.05016.13
5.3.290.0090.04412.80
5.3.280.0000.05714.50
5.3.270.0170.04314.74
5.3.260.0070.06014.51
5.3.250.0070.05714.82
5.3.240.0100.04714.67
5.3.230.0100.05014.68
5.3.220.0100.04714.55
5.3.210.0170.04314.60
5.3.200.0000.05714.73
5.3.190.0030.07714.75
5.3.180.0130.04714.55
5.3.170.0000.05314.63
5.3.160.0100.04714.64
5.3.150.0130.04314.64
5.3.140.0070.05014.63
5.3.130.0100.05014.56
5.3.120.0030.05714.38
5.3.110.0030.06014.54
5.3.100.0100.04714.17
5.3.90.0070.04714.19
5.3.80.0070.07014.20
5.3.70.0100.04713.99
5.3.60.0100.04313.96
5.3.50.0100.04313.86
5.3.40.0070.06713.96
5.3.30.0070.05014.00
5.3.20.0070.05313.60
5.3.10.0000.05013.73
5.3.00.0100.05013.60
5.2.170.0100.03710.98
5.2.160.0070.04011.21
5.2.150.0070.03710.97
5.2.140.0030.04311.21
5.2.130.0070.04711.09
5.2.120.0130.03011.00
5.2.110.0030.04011.09
5.2.100.0000.04011.09
5.2.90.0000.05011.07
5.2.80.0000.04311.16
5.2.70.0100.04711.04
5.2.60.0030.04311.11
5.2.50.0100.03710.92
5.2.40.0070.04011.09
5.2.30.0030.04011.13
5.2.20.0070.03710.92
5.2.10.0070.05310.93
5.2.00.0100.05310.80
5.1.60.0100.04010.23
5.1.50.0070.0339.97
5.1.40.0100.02710.08
5.1.30.0000.05310.41
5.1.20.0030.03710.36
5.1.10.0030.03710.12
5.1.00.0130.03010.22
5.0.50.0070.0238.54
5.0.40.0030.0308.60
5.0.30.0070.0408.42
5.0.20.0030.0278.18
5.0.10.0030.0308.14
5.0.00.0000.0437.99
4.4.90.0000.0237.20
4.4.80.0030.0207.20
4.4.70.0000.0307.12
4.4.60.0100.0207.11
4.4.50.0030.0307.11
4.4.40.0000.0377.11
4.4.30.0000.0237.11
4.4.20.0000.0237.11
4.4.10.0030.0207.11
4.4.00.0000.0337.11
4.3.110.0070.0177.11
4.3.100.0070.0177.11
4.3.90.0100.0177.11
4.3.80.0000.0337.11
4.3.70.0030.0207.11
4.3.60.0030.0207.11
4.3.50.0030.0207.11
4.3.40.0000.0337.11
4.3.30.0000.0237.11
4.3.20.0030.0207.11
4.3.10.0030.0207.11
4.3.00.0130.0206.48

preferences:
50.82 ms | 401 KiB | 5 Q