3v4l.org

run code in 300+ PHP versions simultaneously
<?PHP //directory to list, you choose; here we’ll just use the webroot $path = $_SERVER['DOCUMENT_ROOT']; //warning: `is_dir` will need you to change to the parent directory of what you are testing //see <uk3.php.net/manual/en/function.is-dir.php#70005> for details chdir ($path); //get a directory listing $dir = array_diff (scandir ('.'), //folders / files to ignore array ('.DS_Store', 'Thumbs.db') ); //sort folders first, then by type, then alphabetically usort ($dir, create_function ('$a,$b', 'return is_dir ($a) ? (is_dir ($b) ? strnatcasecmp ($a, $b) : -1) : (is_dir ($b) ? 1 : ( strcasecmp (pathinfo ($a, PATHINFO_EXTENSION), pathinfo ($b, PATHINFO_EXTENSION)) == 0 ? strnatcasecmp ($a, $b) : strcasecmp (pathinfo ($a, PATHINFO_EXTENSION), pathinfo ($b, PATHINFO_EXTENSION)) )) ; ')); //echo to screen header ('content-type: text/plain'); print_r ($dir); ?>

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.0100.01018.43
8.3.50.0140.00921.08
8.3.40.0090.00618.96
8.3.30.0100.00319.04
8.3.20.0040.00420.30
8.3.10.0000.00821.93
8.3.00.0090.00022.24
8.2.180.0030.01216.63
8.2.170.0070.00722.96
8.2.160.0120.00920.22
8.2.150.0000.00924.18
8.2.140.0040.00424.66
8.2.130.0070.00726.16
8.2.120.0080.00019.90
8.2.110.0030.00620.38
8.2.100.0030.01219.01
8.2.90.0030.00517.88
8.2.80.0030.00718.78
8.2.70.0080.00017.63
8.2.60.0030.00517.75
8.2.50.0000.00817.80
8.2.40.0040.00419.89
8.2.30.0040.00418.19
8.2.20.0000.00717.86
8.2.10.0000.00717.71
8.2.00.0040.00417.74
8.1.280.0180.00325.92
8.1.270.0080.00018.61
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0070.00323.69
8.1.230.0080.00420.97
8.1.220.0000.00918.64
8.1.210.0000.00818.77
8.1.200.0080.00017.36
8.1.190.0070.00317.23
8.1.180.0050.00318.10
8.1.170.0060.00317.62
8.1.160.0090.00022.18
8.1.150.0040.00418.72
8.1.140.0050.00317.34
8.1.130.0000.00717.73
8.1.120.0050.00317.51
8.1.110.0070.00017.43
8.1.100.0040.00417.50
8.1.90.0030.00717.33
8.1.80.0000.00717.54
8.1.70.0000.00717.36
8.1.60.0020.00517.66
8.1.50.0040.00417.53
8.1.40.0040.00417.53
8.1.30.0000.00717.69
8.1.20.0080.00017.62
8.1.10.0060.00317.56
8.1.00.0030.00617.54
8.0.300.0000.00818.77
8.0.290.0000.00916.75
8.0.280.0030.00318.48
8.0.270.0030.00317.34
8.0.260.0000.00616.81
8.0.250.0030.00317.05
8.0.240.0040.00417.04
8.0.230.0000.00717.05
8.0.220.0030.00316.97
8.0.210.0030.00317.01
8.0.200.0060.00017.00
8.0.190.0040.00417.08
8.0.180.0000.00716.92
8.0.170.0000.00717.00
8.0.160.0040.00416.98
8.0.150.0040.00416.83
8.0.140.0000.00716.99
8.0.130.0030.00313.33
8.0.120.0070.00315.06
8.0.110.0060.00415.21
8.0.100.0050.00515.20
8.0.90.0070.00415.07
8.0.80.0100.00415.18
8.0.70.0050.00515.14
8.0.60.0080.00215.11
8.0.50.0040.00615.11
8.0.30.0090.00815.83
8.0.20.0100.00716.07
8.0.10.0070.00415.37
8.0.00.0080.00615.70
7.4.330.0050.00015.21
7.4.320.0030.00316.62
7.4.300.0000.00616.49
7.4.290.0080.00016.62
7.4.280.0070.00016.61
7.4.270.0020.00516.53
7.4.260.0040.00416.54
7.4.250.0060.00515.05
7.4.240.0050.00515.44
7.4.230.0060.00515.12
7.4.220.0090.00615.06
7.4.210.0100.00515.77
7.4.200.0080.00214.99
7.4.190.0070.00315.14
7.4.180.0080.00513.41
7.4.160.0100.00515.12
7.4.150.0090.00515.44
7.4.140.0080.00916.40
7.4.130.0050.00815.49
7.4.120.0050.01015.43
7.4.110.0080.00715.03
7.4.100.0110.00715.08
7.4.90.0090.00615.01
7.4.80.0080.00716.34
7.4.70.0120.00415.10
7.4.60.0110.00615.08
7.4.50.0030.00714.99
7.4.40.0080.00617.96
7.4.30.0080.00715.01
7.4.20.0110.00013.35
7.4.10.0070.00413.36
7.4.00.0060.00714.23
7.3.330.0050.00013.32
7.3.320.0000.00713.32
7.3.310.0080.00214.83
7.3.300.0050.00414.88
7.3.290.0070.00714.77
7.3.280.0100.00915.57
7.3.270.0100.00615.32
7.3.260.0070.00914.84
7.3.250.0120.00515.36
7.3.240.0080.00614.84
7.3.230.0090.00914.73
7.3.220.0040.00913.11
7.3.210.0090.00614.83
7.3.200.0080.01016.32
7.3.190.0100.00814.85
7.3.180.0110.00614.87
7.3.170.0130.00214.85
7.3.160.0140.00014.81
7.3.150.0060.00613.07
7.3.140.0060.00613.17
7.3.130.0090.00613.11
7.3.120.0120.00214.09
7.3.110.0150.00013.07
7.3.100.0110.00213.20
7.3.90.0110.00313.27
7.3.80.0140.00013.18
7.3.70.0040.00913.23
7.3.60.0110.00313.46
7.3.50.0070.00713.46
7.3.40.0150.00013.45
7.3.30.0070.00713.24
7.3.20.0150.00015.23
7.3.10.0120.00816.01
7.3.00.0120.00816.00
7.2.340.0060.00613.09
7.2.330.0120.00514.89
7.2.320.0060.00914.90
7.2.310.0100.00615.01
7.2.300.0070.01014.96
7.2.290.0150.00014.91
7.2.280.0090.00413.01
7.2.270.0130.00013.19
7.2.260.0070.00513.00
7.2.250.0080.00413.05
7.2.240.0110.00213.26
7.2.230.0110.00313.06
7.2.220.0140.00013.05
7.2.210.0090.00313.09
7.2.200.0110.00313.12
7.2.190.0050.00813.33
7.2.180.0040.00813.29
7.2.170.0130.00013.20
7.2.160.0120.00013.29
7.2.150.0110.00215.15
7.2.140.0060.00615.23
7.2.130.0080.00715.86
7.2.120.0100.00816.10
7.2.110.0090.00815.99
7.2.100.0100.00516.06
7.2.90.0130.00716.03
7.2.80.0150.00515.95
7.2.70.0090.01116.08
7.2.60.0130.00516.26
7.2.50.0120.00515.96
7.2.40.0100.00616.13
7.2.30.0070.00816.19
7.2.20.0080.00716.09
7.2.10.0130.00616.10
7.2.00.0110.00716.97
7.1.330.0080.00414.26
7.1.320.0080.00414.21
7.1.310.0100.00214.25
7.1.300.0080.00414.20
7.1.290.0120.00014.29
7.1.280.0080.00414.22
7.1.270.0110.00014.29
7.1.260.0060.00614.25
7.1.250.0120.00514.90
7.1.240.0000.01214.20
7.1.230.0080.00314.26
7.1.220.0120.00014.33
7.1.210.0120.00014.36
7.1.200.0060.00614.95
7.1.190.0060.00614.39
7.1.180.0000.01214.29
7.1.170.0100.00214.18
7.1.160.0060.00614.28
7.1.150.0060.00614.40
7.1.140.0090.00314.15
7.1.130.0060.00614.16
7.1.120.0090.00314.32
7.1.110.0060.00614.24
7.1.100.0050.00716.17
7.1.90.0060.00614.24
7.1.80.0100.00214.41
7.1.70.0060.00515.66
7.1.60.0060.01317.00
7.1.50.0070.00815.63
7.1.40.0060.00614.30
7.1.30.0130.00014.37
7.1.20.0080.00514.11
7.1.10.0000.01114.09
7.1.00.0070.03818.35
7.0.330.0090.00213.98
7.0.320.0120.00014.02
7.0.310.0000.01214.07
7.0.300.0060.00614.13
7.0.290.0060.00014.04
7.0.280.0050.00013.84
7.0.270.0000.00814.09
7.0.260.0050.00314.15
7.0.250.0080.00014.37
7.0.240.0070.00014.12
7.0.230.0020.00614.11
7.0.220.0000.00714.15
7.0.210.0060.00014.12
7.0.200.0040.00315.38
7.0.190.0000.00513.92
7.0.180.0070.00514.05
7.0.170.0060.00614.20
7.0.160.0120.00014.07
7.0.150.0090.00314.04
7.0.140.0050.03718.04
7.0.130.0130.00014.01
7.0.120.0060.00614.21
7.0.110.0080.00413.99
7.0.100.0080.00314.11
7.0.90.0090.00313.93
7.0.80.0080.00413.89
7.0.70.0070.00513.93
7.0.60.0060.04317.04
7.0.50.0130.03315.98
7.0.40.0140.02917.16
7.0.30.0200.03417.21
7.0.20.0150.03017.03
7.0.10.0080.04817.25
7.0.00.0090.04217.08
5.6.400.0090.00212.43
5.6.390.0090.00312.43
5.6.380.0060.00612.68
5.6.370.0060.00612.41
5.6.360.0040.00812.81
5.6.350.0120.00012.81
5.6.340.0090.00312.49
5.6.330.0130.00012.61
5.6.320.0120.00012.55
5.6.310.0060.00612.64
5.6.300.0090.00212.61
5.6.290.0000.01112.65
5.6.280.0080.03716.64
5.6.270.0110.00012.68
5.6.260.0050.00512.39
5.6.250.0120.00012.46
5.6.240.0120.00012.80
5.6.230.0060.00612.94
5.6.220.0120.00012.88
5.6.210.0090.03316.80
5.6.200.0090.04015.65
5.6.190.0040.03716.75
5.6.180.0280.03616.76
5.6.170.0150.02516.75
5.6.160.0070.04416.73
5.6.150.0060.04015.62
5.6.140.0080.03015.61
5.6.130.0040.02415.51
5.6.120.0050.04716.91
5.6.110.0080.02116.97
5.6.100.0090.03316.84
5.6.90.0070.04416.83
5.6.80.0110.03816.57
5.6.70.0120.00012.92
5.6.60.0070.00412.84
5.6.50.0060.00612.70
5.6.40.0090.00212.87
5.6.30.0060.00612.60
5.6.20.0060.00612.70
5.6.10.0030.00712.70
5.6.00.0080.00312.79
5.5.380.0060.00612.86
5.5.370.0080.00312.92
5.5.360.0000.01112.64
5.5.350.0060.02216.60
5.5.340.0070.02015.39
5.5.330.0110.04016.31
5.5.320.0650.02316.39
5.5.310.0240.03716.46
5.5.300.0070.04215.33
5.5.290.0060.04115.44
5.5.280.0030.02416.69
5.5.270.0080.03716.69
5.5.260.0110.04116.77
5.5.250.0090.02216.58
5.5.240.0090.03316.51
5.5.230.0090.00412.66
5.5.220.0110.00012.68
5.5.210.0080.00312.81
5.5.200.0100.00212.73
5.5.190.0080.00412.66
5.5.180.0100.00212.58
5.5.170.0040.00712.73
5.5.160.0000.01112.73
5.5.150.0070.00512.59
5.5.140.0060.00612.44
5.5.130.0090.00312.47
5.5.120.0060.00612.43
5.5.110.0080.00412.48
5.5.100.0120.00012.62
5.5.90.0120.00012.86
5.5.80.0040.00712.70
5.5.70.0110.00012.75
5.5.60.0080.00312.68
5.5.50.0030.00712.86
5.5.40.0070.00412.60
5.5.30.0110.00012.59
5.5.20.0070.00412.55
5.5.10.0080.00312.49
5.5.00.0090.00212.80
5.4.450.0270.02716.89
5.4.440.0590.02016.86
5.4.430.0220.02516.97
5.4.420.0470.02217.06
5.4.410.0470.02716.95
5.4.400.0440.02216.82
5.4.390.0270.02216.93
5.4.380.0390.02716.84
5.4.370.0220.01716.97
5.4.360.0400.02516.91
5.4.350.0350.02516.91
5.4.340.0240.02016.85
5.4.330.0090.00312.77
5.4.320.0240.02216.96
5.4.310.0190.02317.03
5.4.300.0300.02517.03
5.4.290.0290.02116.99
5.4.280.0460.01716.95
5.4.270.0130.02117.03
5.4.260.0360.02516.96
5.4.250.0460.02416.79
5.4.240.0290.02416.99
5.4.230.0240.02116.82
5.4.220.0450.02016.71
5.4.210.0320.02016.81
5.4.200.0270.02016.75
5.4.190.0300.02616.75
5.4.180.0200.02116.83
5.4.170.0360.02116.88
5.4.160.0430.02316.79
5.4.150.0420.02016.82
5.4.140.0440.02016.80
5.4.130.0530.01816.87
5.4.120.0440.01816.93
5.4.110.0390.02016.90
5.4.100.0390.01716.97
5.4.90.0400.02217.05
5.4.80.0240.02417.00
5.4.70.0320.02017.08
5.4.60.0270.02117.08
5.4.50.0320.02216.92
5.4.40.0480.02417.08
5.4.30.0340.02717.02
5.4.20.0250.02316.93
5.4.10.0290.02116.99
5.4.00.0140.02216.90
5.3.290.0410.02517.26
5.3.280.0520.02017.18
5.3.270.0560.02017.18
5.3.260.0460.02517.14
5.3.250.0390.02017.22
5.3.240.0230.02517.12
5.3.230.0300.01817.11
5.3.220.0430.02117.16
5.3.210.0470.02117.16
5.3.200.0290.02117.05
5.3.190.0210.02217.19
5.3.180.0220.02217.25
5.3.170.0360.02117.10
5.3.160.0270.02417.14
5.3.150.0360.02017.21
5.3.140.0310.01817.24
5.3.130.0330.02017.07
5.3.120.0530.01917.08
5.3.110.0560.01817.22
5.3.100.0440.01717.09
5.3.90.0340.02017.10
5.3.80.0300.02217.12
5.3.70.0410.02317.12
5.3.60.0210.02117.18
5.3.50.0240.02017.17
5.3.40.0440.01617.18
5.3.30.0250.02517.06
5.3.20.0370.01717.12
5.3.10.0590.01816.94
5.3.00.0350.02216.95
5.2.170.0410.01916.72
5.2.160.0260.01916.69
5.2.150.0160.02116.69
5.2.140.0410.02016.63
5.2.130.0310.01516.56
5.2.120.0240.01616.57
5.2.110.0320.01416.54
5.2.100.0270.01916.66
5.2.90.0280.01516.66
5.2.80.0280.01316.61
5.2.70.0350.01816.52
5.2.60.0340.01716.55
5.2.50.0060.01916.48
5.2.40.0220.01616.54
5.2.30.0370.01716.53
5.2.20.0190.01316.49
5.2.10.0180.01316.39
5.2.00.0050.01716.48
5.1.60.0150.01416.14
5.1.50.0200.01216.20
5.1.40.0310.01816.13
5.1.30.0270.01516.27
5.1.20.0300.01216.18
5.1.10.0220.01716.29
5.1.00.0340.01016.14
5.0.50.0130.01315.71
5.0.40.0150.01315.71
5.0.30.0210.01315.71
5.0.20.0130.00815.71
5.0.10.0030.01015.71
5.0.00.0070.01615.71
4.4.90.0100.01015.65
4.4.80.0030.01215.65
4.4.70.0130.00815.65
4.4.60.0200.00715.65
4.4.50.0050.00715.65
4.4.40.0030.01415.65
4.4.30.0160.00615.71
4.4.20.0040.00515.71
4.4.10.0180.00815.71
4.4.00.0200.01415.71
4.3.110.0070.00515.71
4.3.100.0140.00815.71
4.3.90.0130.00815.71
4.3.80.0050.01215.71
4.3.70.0120.00915.71
4.3.60.0180.01015.71
4.3.50.0030.01015.71
4.3.40.0160.01115.71
4.3.30.0050.01015.71
4.3.20.0020.01015.71
4.3.10.0030.00815.71
4.3.00.0020.00815.71

preferences:
59.53 ms | 401 KiB | 5 Q