3v4l.org

run code in 300+ PHP versions simultaneously
<?php function permission($filename) { $perms = fileperms($filename); if (($perms & 0xC000) == 0xC000) { $info = 's'; } elseif (($perms & 0xA000) == 0xA000) { $info = 'l'; } elseif (($perms & 0x8000) == 0x8000) { $info = '-'; } elseif (($perms & 0x6000) == 0x6000) { $info = 'b'; } elseif (($perms & 0x4000) == 0x4000) { $info = 'd'; } elseif (($perms & 0x2000) == 0x2000) { $info = 'c'; } elseif (($perms & 0x1000) == 0x1000) { $info = 'p'; } else { $info = 'u'; } // владелец $info .= (($perms & 0x0100) ? 'r' : '-'); $info .= (($perms & 0x0080) ? 'w' : '-'); $info .= (($perms & 0x0040) ? (($perms & 0x0800) ? 's' : 'x' ) : (($perms & 0x0800) ? 'S' : '-')); // группа $info .= (($perms & 0x0020) ? 'r' : '-'); $info .= (($perms & 0x0010) ? 'w' : '-'); $info .= (($perms & 0x0008) ? (($perms & 0x0400) ? 's' : 'x' ) : (($perms & 0x0400) ? 'S' : '-')); // все $info .= (($perms & 0x0004) ? 'r' : '-'); $info .= (($perms & 0x0002) ? 'w' : '-'); $info .= (($perms & 0x0001) ? (($perms & 0x0200) ? 't' : 'x' ) : (($perms & 0x0200) ? 'T' : '-')); return $info; } function dir_list($dir) { if ($dir[strlen($dir)-1] != '/') $dir .= '/'; if (!is_dir($dir)) return array(); $dir_handle = opendir($dir); $dir_objects = array(); while ($object = readdir($dir_handle)) if (!in_array($object, array('.','..'))) { $filename = $dir . $object; $file_object = array( 'name' => $object, 'size' => filesize($filename), 'perm' => permission($filename), 'type' => filetype($filename), 'time' => date("d F Y H:i:s", filemtime($filename)) ); $dir_objects[] = $file_object; } return $dir_objects; } print_r(dir_list('/proc')); // echo file_get_contents("/etc/php.ini"); echo file_get_contents("/proc/version");

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.0090.00616.88
8.3.60.0100.01018.28
8.3.50.0100.00821.14
8.3.40.0090.00618.91
8.3.30.0100.00320.29
8.3.20.0040.00420.52
8.3.10.0050.00321.04
8.3.00.0080.00023.46
8.2.180.0140.00716.88
8.2.170.0160.00622.96
8.2.160.0100.00320.36
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0050.00321.19
8.2.110.0090.00019.15
8.2.100.0030.00917.91
8.2.90.0050.00319.27
8.2.80.0000.00719.41
8.2.70.0040.00417.63
8.2.60.0050.00317.80
8.2.50.0030.00718.07
8.2.40.0040.00418.16
8.2.30.0020.00519.54
8.2.20.0040.00417.71
8.2.10.0030.00517.61
8.2.00.0020.00517.71
8.1.280.0090.00925.92
8.1.270.0040.00423.99
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00322.46
8.1.230.0070.00420.97
8.1.220.0040.00418.77
8.1.210.0030.00618.97
8.1.200.0090.00317.35
8.1.190.0030.00617.40
8.1.180.0080.00018.10
8.1.170.0000.00918.65
8.1.160.0070.00018.93
8.1.150.0040.00418.66
8.1.140.0030.00517.50
8.1.130.0000.00717.79
8.1.120.0030.00617.54
8.1.110.0000.00717.51
8.1.100.0040.00417.36
8.1.90.0040.00417.47
8.1.80.0050.00217.43
8.1.70.0000.00717.40
8.1.60.0060.00317.52
8.1.50.0050.00217.43
8.1.40.0000.00817.53
8.1.30.0050.00317.66
8.1.20.0040.00417.57
8.1.10.0000.00717.64
8.1.00.0040.00417.47
8.0.300.0050.00320.07
8.0.290.0000.00717.05
8.0.280.0030.00318.59
8.0.270.0070.00017.44
8.0.260.0030.00317.09
8.0.250.0040.00417.10
8.0.240.0000.00817.07
8.0.230.0000.00817.12
8.0.220.0080.00016.91
8.0.210.0030.00317.01
8.0.200.0030.00317.14
8.0.190.0050.00217.11
8.0.180.0040.00417.09
8.0.170.0040.00417.05
8.0.160.0000.00916.95
8.0.150.0000.00717.01
8.0.140.0040.00416.93
8.0.130.0030.00313.50
8.0.120.0050.00713.44
8.0.110.0080.00213.47
8.0.100.0090.00413.45
8.0.90.0080.00513.48
8.0.80.0080.00513.49
8.0.70.0110.00213.44
8.0.60.0060.00613.38
8.0.50.0070.00613.46
8.0.30.0090.00313.37
8.0.20.0090.00313.51
8.0.10.0100.00213.61
8.0.00.0010.00613.60
7.4.330.0000.00715.09
7.4.320.0060.00016.55
7.4.300.0000.00616.62
7.4.290.0070.00016.56
7.4.280.0050.00316.64
7.4.270.0000.00716.64
7.4.260.0030.00313.35
7.4.250.0060.00313.33
7.4.240.0100.00313.26
7.4.230.0070.00813.38
7.4.220.0100.00313.31
7.4.210.0070.00513.33
7.4.200.0060.00513.39
7.4.190.0070.00513.33
7.4.180.0110.00113.33
7.4.160.0070.00513.35
7.4.150.0110.00213.32
7.4.140.0050.00813.33
7.4.130.0070.00413.36
7.4.120.0090.00213.31
7.4.110.0060.00513.28
7.4.100.0120.00113.39
7.4.90.0030.00813.34
7.4.80.0080.00615.12
7.4.70.0070.00614.57
7.4.60.0070.00714.46
7.4.50.0090.00414.41
7.4.40.0060.00915.72
7.4.30.0100.00714.50
7.4.20.0090.00413.88
7.4.10.0080.00514.03
7.4.00.0080.00613.97
7.3.330.0030.00313.45
7.3.320.0090.00413.54
7.3.310.0110.00113.47
7.3.300.0070.00313.44
7.3.290.0060.00513.47
7.3.280.0080.00413.44
7.3.270.0070.00513.45
7.3.260.0060.00613.56
7.3.250.0080.00313.56
7.3.240.0080.00413.46
7.3.230.0030.00513.45
7.3.220.0060.00313.39
7.3.210.0070.00213.45
7.3.200.0110.00415.20
7.3.190.0140.00514.68
7.3.180.0060.00614.58
7.3.170.0060.00714.67
7.3.160.0060.00714.56
7.3.150.0060.00714.11
7.3.140.0040.00814.13
7.3.130.0070.00414.13
7.3.120.0060.00514.08
7.3.110.0100.00514.02
7.3.100.0080.00514.04
7.3.90.0080.00314.17
7.3.80.0070.00614.04
7.3.70.0220.00614.03
7.3.60.0050.00614.12
7.3.50.0040.00814.13
7.3.40.0090.00214.12
7.3.30.0100.00314.12
7.3.20.0040.00815.49
7.3.10.0080.00515.41
7.3.00.0090.00515.49
7.2.340.0110.00113.56
7.2.330.0100.00413.50
7.2.320.0100.00414.35
7.2.310.0090.00714.70
7.2.300.0120.00614.72
7.2.290.0130.00314.71
7.2.280.0080.00714.26
7.2.270.0100.00614.21
7.2.260.0080.00614.33
7.2.250.0100.00414.36
7.2.240.0100.00614.17
7.2.230.0100.00414.27
7.2.220.0110.00314.30
7.2.210.0090.00514.30
7.2.200.0260.00614.37
7.2.190.0100.00514.18
7.2.180.0090.00614.27
7.2.170.0070.00814.28
7.2.160.0110.00314.31
7.2.150.0090.00615.63
7.2.140.0120.00415.60
7.2.130.0120.00315.75
7.2.120.0150.00715.71
7.2.110.0160.00715.66
7.2.100.0110.00715.74
7.2.90.0160.00415.63
7.2.80.0110.00515.63
7.2.70.0140.00615.76
7.2.60.0100.00615.70
7.2.50.0090.00615.66
7.2.40.0070.00815.66
7.2.30.0180.00715.63
7.2.20.0250.00215.67
7.2.10.0100.00615.73
7.2.00.0130.00215.76
7.1.330.0140.00414.65
7.1.320.0110.00414.63
7.1.310.0090.00514.61
7.1.300.0110.00314.76
7.1.290.0080.00514.65
7.1.280.0100.00414.63
7.1.270.0160.00214.64
7.1.260.0120.00214.68
7.1.250.0170.00614.52
7.1.240.0060.00914.66
7.1.230.0090.00614.72
7.1.220.0150.00214.60
7.1.210.0130.00714.59
7.1.200.0120.00514.64
7.1.190.0080.00614.67
7.1.180.0120.00414.58
7.1.170.0090.00514.55
7.1.160.0090.00414.57
7.1.150.0170.00614.57
7.1.140.0120.00214.67
7.1.130.0110.00414.57
7.1.120.0220.00414.56
7.1.110.0160.00714.54
7.1.100.0140.00114.61
7.1.90.0090.00614.58
7.1.80.0120.00214.71
7.1.70.0060.00814.59
7.1.60.0100.00514.69
7.1.50.0120.00314.60
7.1.40.0100.00614.60
7.1.30.0110.00314.63
7.1.20.0100.00414.66
7.1.10.0050.01014.65
7.1.00.0080.00914.59
7.0.330.0150.00514.49
7.0.320.0090.00614.47
7.0.310.0150.00114.51
7.0.300.0060.00814.42
7.0.290.0090.00414.35
7.0.280.0250.00414.47
7.0.270.0100.00414.45
7.0.260.0190.00414.53
7.0.250.0170.00214.55
7.0.240.0090.00714.58
7.0.230.0100.00414.60
7.0.220.0090.00514.45
7.0.210.0150.00614.68
7.0.200.0090.00514.46
7.0.190.0100.00614.54
7.0.180.0120.00514.67
7.0.170.0130.00214.63
7.0.160.0110.00414.56
7.0.150.0100.00514.51
7.0.140.0110.00314.45
7.0.130.0080.00714.55
7.0.120.0120.00414.55
7.0.110.0090.00714.46
7.0.100.0080.00714.46
7.0.90.0120.00414.40
7.0.80.0130.00915.55
7.0.70.0110.02015.56
7.0.60.0110.02215.64
7.0.50.0130.01915.64
7.0.40.0120.02015.59
7.0.30.0100.02415.59
7.0.20.0130.01915.61
7.0.10.0120.02115.65
7.0.00.0130.02015.57
5.6.400.0060.00713.63
5.6.390.0110.00513.61
5.6.380.0160.00413.70
5.6.370.0090.00813.53
5.6.360.0090.00713.64
5.6.350.0080.00713.61
5.6.340.0190.00613.65
5.6.330.0080.00713.54
5.6.320.0080.00913.62
5.6.310.0120.00413.57
5.6.300.0100.00613.54
5.6.290.0070.00813.69
5.6.280.0100.00613.69
5.6.270.0130.00413.52
5.6.260.0120.00313.57
5.6.250.0090.00713.56
5.6.240.0110.00713.64
5.6.230.0110.01715.13
5.6.220.0120.02315.19
5.6.210.0150.02215.10
5.6.200.0130.02015.32
5.6.190.0110.02215.29
5.6.180.0090.02315.27
5.6.170.0080.02315.16
5.6.160.0130.01915.22
5.6.150.0130.01915.25
5.6.140.0090.02315.11
5.6.130.0100.02315.12
5.6.120.0100.02215.15
5.6.110.0140.01915.09
5.6.100.0130.02115.14
5.6.90.0110.02115.13
5.6.80.0150.01814.82
5.6.70.0100.02215.01
5.6.60.0090.02115.05
5.6.50.0090.02115.02
5.6.40.0090.02215.03
5.6.30.0100.01915.01
5.6.20.0080.02214.99
5.6.10.0090.01714.97
5.6.00.0070.01914.99
5.5.380.0100.00513.72
5.5.370.0080.02015.14
5.5.360.0130.02114.88
5.5.350.0100.02214.97
5.5.340.0110.02115.12
5.5.330.0070.02414.91
5.5.320.0080.02414.96
5.5.310.0110.02015.02
5.5.300.0120.01715.18
5.5.290.0110.02115.06
5.5.280.0100.01914.96
5.5.270.0080.02115.11
5.5.260.0110.02115.09
5.5.250.0110.02015.05
5.5.240.0130.01915.06
5.5.230.0100.02114.84
5.5.220.0110.02114.93
5.5.210.0110.01714.90
5.5.200.0120.02014.96
5.5.190.0110.02014.86
5.5.180.0070.02214.85
5.5.170.0090.00513.67
5.5.160.0080.01914.93
5.5.150.0070.01714.87
5.5.140.0090.01814.87
5.5.130.0100.01814.88
5.5.120.0100.02214.86
5.5.110.0080.02114.80
5.5.100.0080.01915.00
5.5.90.0110.02115.01
5.5.80.0070.02015.03
5.5.70.0080.02115.04
5.5.60.0120.01915.00
5.5.50.0070.02014.96
5.5.40.0090.02014.99
5.5.30.0100.01614.95
5.5.20.0100.01215.02
5.5.10.0090.02114.91
5.5.00.0080.02114.94
5.4.450.0140.02114.16
5.4.440.0120.02214.09
5.4.430.0120.01814.08
5.4.420.0160.02114.19
5.4.410.0130.01914.17
5.4.400.0130.02313.94
5.4.390.0120.02414.10
5.4.380.0110.02114.04
5.4.370.0120.02213.98
5.4.360.0140.01713.99
5.4.350.0090.02413.90
5.4.340.0150.02014.03
5.4.330.0120.00612.71
5.4.320.0110.02214.08
5.4.310.0110.02314.04
5.4.300.0180.01614.05
5.4.290.0160.01414.02
5.4.280.0130.02114.04
5.4.270.0130.02014.06
5.4.260.0110.02213.97
5.4.250.0140.02114.04
5.4.240.0110.02114.01
5.4.230.0140.01713.82
5.4.220.0120.02113.82
5.4.210.0140.02013.91
5.4.200.0120.02113.82
5.4.190.0120.02213.82
5.4.180.0140.01913.89
5.4.170.0090.02213.96
5.4.160.0120.02313.97
5.4.150.0110.02113.88
5.4.140.0110.02113.63
5.4.130.0100.02213.58
5.4.120.0120.02113.62
5.4.110.0140.02013.57
5.4.100.0160.01613.65
5.4.90.0150.01813.62
5.4.80.0150.02113.68
5.4.70.0130.02113.67
5.4.60.0120.02113.66
5.4.50.0160.01313.53
5.4.40.0130.02313.70
5.4.30.0130.02113.60
5.4.20.0120.02013.59
5.4.10.0110.02213.70
5.4.00.0100.02513.32
5.3.290.0110.02213.76
5.3.280.0160.01513.50
5.3.270.0140.01813.59
5.3.260.0090.02513.79
5.3.250.0140.02013.72
5.3.240.0140.01713.67
5.3.230.0160.01813.68
5.3.220.0160.02313.43
5.3.210.0110.02313.44
5.3.200.0140.02013.50
5.3.190.0190.01913.61
5.3.180.0110.02413.67
5.3.170.0150.02013.68
5.3.160.0110.02213.60
5.3.150.0130.02213.53
5.3.140.0120.02113.63
5.3.130.0120.02313.54
5.3.120.0140.02113.51
5.3.110.0120.02113.62
5.3.100.0100.01813.56
5.3.90.0200.01713.45
5.3.80.0110.02213.32
5.3.70.0160.01713.40
5.3.60.0140.01813.32
5.3.50.0080.02013.48
5.3.40.0140.02213.44
5.3.30.0080.02213.42
5.3.20.0070.02413.27
5.3.10.0080.02013.12
5.3.00.0080.02113.11

preferences:
82.12 ms | 401 KiB | 5 Q