3v4l.org

run code in 300+ PHP versions simultaneously
<?php file_put_contents('1.txt', 'test'); echo file_get_contents('1.txt'); function rec($dir, $depth) { $d = dir($dir); if (!$d) return; while ($entry = $d->read()) { if ($entry == '.' || $entry == '..') continue; echo $depth . $entry . "\n"; if (is_dir($dir . '/' . $entry)) { //rec($dir . '/' . $entry, $depth . " "); } } } rec('/opt', '');

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.0040.01116.75
8.3.50.0120.00722.93
8.3.40.0120.00418.79
8.3.30.0070.00719.09
8.3.20.0040.00420.35
8.3.10.0000.00823.45
8.3.00.0080.00019.38
8.2.180.0100.00716.60
8.2.170.0000.01522.96
8.2.160.0070.00720.35
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0060.00326.16
8.2.120.0040.00421.02
8.2.110.0060.00322.23
8.2.100.0040.00818.09
8.2.90.0060.00319.28
8.2.80.0090.00017.97
8.2.70.0000.00817.37
8.2.60.0040.00417.93
8.2.50.0060.00318.07
8.2.40.0040.00418.34
8.2.30.0000.00717.95
8.2.20.0080.00017.57
8.2.10.0070.00018.16
8.2.00.0000.00717.68
8.1.280.0150.00325.92
8.1.270.0080.00023.78
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00820.90
8.1.230.0070.00418.80
8.1.220.0000.00717.77
8.1.210.0000.00818.77
8.1.200.0120.00017.22
8.1.190.0040.00417.36
8.1.180.0040.00418.10
8.1.170.0000.00818.56
8.1.160.0040.00422.03
8.1.150.0000.00718.93
8.1.140.0080.00017.48
8.1.130.0030.00317.73
8.1.120.0040.00417.50
8.1.110.0020.00517.49
8.1.100.0040.00417.43
8.1.90.0040.00417.39
8.1.80.0000.00717.41
8.1.70.0030.00617.39
8.1.60.0000.00817.60
8.1.50.0040.00417.42
8.1.40.0060.00317.57
8.1.30.0040.00417.51
8.1.20.0000.00717.55
8.1.10.0000.00817.45
8.1.00.0080.00017.34
8.0.300.0000.00918.77
8.0.290.0000.00916.88
8.0.280.0070.00018.54
8.0.270.0000.00717.33
8.0.260.0080.00017.20
8.0.250.0030.00317.09
8.0.240.0050.00617.12
8.0.230.0030.00417.10
8.0.220.0000.00616.99
8.0.210.0040.00417.01
8.0.200.0030.00317.00
8.0.190.0040.00417.08
8.0.180.0000.00816.93
8.0.170.0000.00716.94
8.0.160.0040.00417.03
8.0.150.0070.00016.99
8.0.140.0040.00416.76
8.0.130.0000.00613.42
8.0.120.0020.00615.20
8.0.110.0040.00415.21
8.0.100.0030.00515.21
8.0.90.0030.00415.21
8.0.80.0000.01215.19
8.0.70.0040.00415.26
8.0.60.0040.00315.16
8.0.50.0060.00215.11
8.0.30.0040.01215.71
8.0.20.0090.00616.09
8.0.10.0020.00515.23
8.0.00.0050.00915.73
7.4.330.0000.00515.00
7.4.320.0070.00016.50
7.4.300.0000.00616.54
7.4.290.0030.00316.65
7.4.280.0080.00016.41
7.4.270.0000.00716.37
7.4.260.0040.00416.48
7.4.250.0000.00714.89
7.4.240.0040.00315.53
7.4.230.0030.00314.95
7.4.220.0090.00314.85
7.4.210.0060.00514.89
7.4.200.0020.00515.00
7.4.190.0000.00613.29
7.4.180.0000.00513.24
7.4.160.0080.00314.82
7.4.150.0060.00515.35
7.4.140.0120.00416.37
7.4.130.0050.00915.48
7.4.120.0060.00915.44
7.4.110.0060.00814.86
7.4.100.0110.00215.03
7.4.90.0060.00614.85
7.4.80.0040.00816.37
7.4.70.0050.00714.99
7.4.60.0100.00514.85
7.4.50.0030.00414.73
7.4.40.0070.00914.72
7.4.30.0070.00514.93
7.4.20.0050.00313.30
7.4.10.0080.00814.22
7.4.00.0070.00714.51
7.3.330.0030.00313.48
7.3.320.0000.00613.30
7.3.310.0030.00514.90
7.3.300.0050.00214.94
7.3.290.0060.00414.87
7.3.280.0040.00915.63
7.3.270.0060.00815.40
7.3.260.0100.00514.85
7.3.250.0080.00615.33
7.3.240.0120.00414.90
7.3.230.0080.00615.05
7.3.220.0000.00913.21
7.3.210.0080.00414.85
7.3.200.0100.00316.24
7.3.190.0060.00714.88
7.3.180.0100.00514.87
7.3.170.0100.00314.87
7.3.160.0060.00614.82
7.3.150.0000.00713.22
7.3.140.0020.00513.04
7.3.130.0050.00613.86
7.3.120.0060.00914.26
7.3.110.0050.00914.30
7.3.100.0070.00714.20
7.3.90.0080.00314.56
7.3.80.0050.00614.25
7.3.70.0050.00714.29
7.3.60.0020.00714.31
7.3.50.0050.00514.30
7.3.40.0040.00714.33
7.3.30.0060.00414.40
7.3.20.0060.00616.18
7.3.10.0080.00216.26
7.3.00.0050.00516.18
7.2.340.0060.00613.18
7.2.330.0140.00115.01
7.2.320.0080.00614.93
7.2.310.0120.00615.11
7.2.300.0090.00614.97
7.2.290.0120.00314.89
7.2.280.0090.00613.38
7.2.270.0060.00613.36
7.2.260.0070.00914.24
7.2.250.0060.01014.29
7.2.240.0110.00414.46
7.2.230.0070.00714.45
7.2.220.0080.00514.43
7.2.210.0080.00814.48
7.2.200.0100.00614.44
7.2.190.0090.00414.50
7.2.180.0090.00614.45
7.2.170.0070.00714.48
7.2.160.0080.00414.47
7.2.150.0090.00516.29
7.2.140.0040.00916.36
7.2.130.0080.00816.38
7.2.120.0080.00616.31
7.2.110.0090.00716.33
7.2.100.0100.00516.25
7.2.90.0110.00216.44
7.2.80.0080.00816.42
7.2.70.0050.00716.47
7.2.60.0060.00816.60
7.2.50.0100.00416.19
7.2.40.0080.00516.37
7.2.30.0050.00816.42
7.2.20.0090.00516.44
7.2.10.0080.00816.33
7.2.00.0060.00717.04
7.1.330.0060.00815.36
7.1.320.0050.00715.22
7.1.310.0060.00715.21
7.1.300.0080.00615.27
7.1.290.0070.00715.16
7.1.280.0060.00815.24
7.1.270.0090.00415.21
7.1.260.0060.00615.28
7.1.250.0060.00615.22
7.1.240.0030.01015.36
7.1.230.0070.00615.40
7.1.220.0060.00815.06
7.1.210.0060.00715.28
7.1.200.0060.00915.44
7.1.190.0070.00615.23
7.1.180.0060.00415.26
7.1.170.0080.00415.15
7.1.160.0070.00415.27
7.1.150.0090.00415.21
7.1.140.0030.01115.18
7.1.130.0080.00415.18
7.1.120.0070.00615.28
7.1.110.0090.00215.19
7.1.100.0040.00615.91
7.1.90.0080.00215.23
7.1.80.0080.00315.26
7.1.70.0060.00415.79
7.1.60.0050.01016.36
7.1.50.0070.00715.79
7.1.40.0070.00615.27
7.1.30.0070.00415.16
7.1.20.0060.00715.21
7.1.10.0070.00315.24
7.1.00.0080.02117.08
7.0.330.0060.00814.92
7.0.320.0050.00814.96
7.0.310.0080.00814.95
7.0.300.0070.00415.00
7.0.290.0020.01014.95
7.0.280.0030.00814.93
7.0.270.0030.01014.95
7.0.260.0080.00514.91
7.0.250.0050.00715.08
7.0.240.0050.00715.04
7.0.230.0050.00815.08
7.0.220.0090.00515.05
7.0.210.0080.00214.89
7.0.200.0050.00515.36
7.0.190.0040.00615.02
7.0.180.0050.00715.06
7.0.170.0080.00315.02
7.0.160.0090.00615.13
7.0.150.0060.00614.88
7.0.140.0050.01916.71
7.0.130.0050.00614.97
7.0.120.0080.00514.92
7.0.110.0070.00614.97
7.0.100.0100.00214.88
7.0.90.0080.00414.88
7.0.80.0050.00715.04
7.0.70.0070.00714.93
7.0.60.0070.01516.26
7.0.50.0070.01215.76
7.0.40.0090.01715.25
7.0.30.0110.02215.21
7.0.20.0080.01915.33
7.0.10.0060.02215.22
7.0.00.0070.01715.29
5.6.400.0080.00213.82
5.6.390.0060.00713.75
5.6.380.0080.00413.97
5.6.370.0080.00413.86
5.6.360.0060.00713.80
5.6.350.0070.00513.84
5.6.340.0070.00413.84
5.6.330.0080.00513.74
5.6.320.0090.00313.92
5.6.310.0080.00613.84
5.6.300.0080.00513.70
5.6.290.0080.00513.85
5.6.280.0040.02315.46
5.6.270.0080.00613.90
5.6.260.0040.01013.83
5.6.250.0060.00713.87
5.6.240.0060.00713.80
5.6.230.0070.00513.88
5.6.220.0050.00913.80
5.6.210.0060.02415.60
5.6.200.0090.02214.91
5.6.190.0070.01415.56
5.6.180.0950.01715.62
5.6.170.0110.01715.59
5.6.160.0080.01315.56
5.6.150.0060.01814.95
5.6.140.0080.02314.82
5.6.130.0060.01714.91
5.6.120.0060.01415.58
5.6.110.0060.01715.57
5.6.100.0030.01715.64
5.6.90.0110.01915.65
5.6.80.0100.02115.34
5.6.70.0090.00413.83
5.6.60.0070.00413.67
5.6.50.0070.00613.84
5.6.40.0080.00113.79
5.6.30.0070.00413.78
5.6.20.0070.00613.79
5.6.10.0060.00713.92
5.6.00.0080.00313.81
5.5.380.0060.00613.82
5.5.370.0050.00813.74
5.5.360.0090.00413.78
5.5.350.0080.02515.44
5.5.340.0050.01714.76
5.5.330.0080.01315.46
5.5.320.0130.02215.35
5.5.310.0070.02415.37
5.5.300.0080.02314.89
5.5.290.0060.02514.83
5.5.280.0040.01715.39
5.5.270.0080.01615.57
5.5.260.0050.02015.55
5.5.250.0050.01715.33
5.5.240.0110.02115.41
5.5.230.0060.00613.64
5.5.220.0070.00513.59
5.5.210.0030.00913.76
5.5.200.0070.00513.74
5.5.190.0060.00813.73
5.5.180.0040.00813.56
5.5.170.0070.00413.60
5.5.160.0050.00913.55
5.5.150.0090.00513.67
5.5.140.0050.00813.76
5.5.130.0050.00413.61
5.5.120.0060.00413.54
5.5.110.0060.00613.66
5.5.100.0070.00413.78
5.5.90.0110.00113.54
5.5.80.0040.00913.80
5.5.70.0050.00813.68
5.5.60.0100.00413.60
5.5.50.0070.00713.57
5.5.40.0090.00313.74
5.5.30.0070.00513.66
5.5.20.0060.00613.73
5.5.10.0070.00413.69
5.5.00.0060.00913.45
5.4.450.0190.01513.69
5.4.440.0190.01613.62
5.4.430.0160.01513.71
5.4.420.0080.01413.52
5.4.410.0130.01413.62
5.4.400.0160.01613.65
5.4.390.0180.01313.35
5.4.380.0150.01513.42
5.4.370.0160.02113.46
5.4.360.0150.01513.38
5.4.350.0140.01913.37
5.4.340.0120.01713.49
5.4.330.0060.00311.74
5.4.320.0040.01411.94
5.4.310.0040.01711.92
5.4.300.0060.01511.89
5.4.290.0040.01411.82
5.4.280.0050.01311.89
5.4.270.0050.01211.83
5.4.260.0070.01211.83
5.4.250.0060.01311.79
5.4.240.0040.01211.90
5.4.230.0060.01711.77
5.4.220.0060.01311.75
5.4.210.0060.01211.78
5.4.200.0050.01511.74
5.4.190.0050.01511.88
5.4.180.0030.01611.75
5.4.170.0050.01411.90
5.4.160.0070.01211.90
5.4.150.0050.01511.79
5.4.140.0090.01211.82
5.4.130.0040.01411.81
5.4.120.0050.01211.77
5.4.110.0060.01411.78
5.4.100.0040.01511.78
5.4.90.0050.01311.73
5.4.80.0060.01211.71
5.4.70.0050.01211.71
5.4.60.0070.01011.75
5.4.50.0040.02011.79
5.4.40.0070.01611.73
5.4.30.0060.01411.76
5.4.20.0070.01111.78
5.4.10.0040.01411.72
5.4.00.0060.01211.56
5.3.290.0060.02313.04
5.3.280.0030.02512.93
5.3.270.0060.02313.00
5.3.260.0070.02112.96
5.3.250.0050.02213.00
5.3.240.0070.02312.79
5.3.230.0090.02212.77
5.3.220.0090.01812.89
5.3.210.0060.02112.74
5.3.200.0070.02412.85
5.3.190.0100.01712.79
5.3.180.0050.02212.82
5.3.170.0080.01912.98
5.3.160.0070.02212.84
5.3.150.0080.02112.83
5.3.140.0070.02012.79
5.3.130.0090.02012.93
5.3.120.0060.02212.92
5.3.110.0080.02312.82
5.3.100.0070.01912.62
5.3.90.0050.02112.50
5.3.80.0020.02412.56
5.3.70.0070.01912.56
5.3.60.0070.02012.63
5.3.50.0070.02012.55
5.3.40.0020.02512.56
5.3.30.0070.01812.45
5.3.20.0080.01812.33
5.3.10.0050.02012.24
5.3.00.0070.02112.32
5.2.170.0030.02010.59
5.2.160.0040.02110.66
5.2.150.0080.01510.58
5.2.140.0040.01910.55
5.2.130.0050.01710.60
5.2.120.0050.01610.63
5.2.110.0050.01610.66
5.2.100.0040.01910.52
5.2.90.0040.02310.53
5.2.80.0060.01610.56
5.2.70.0040.01810.50
5.2.60.0030.01910.51
5.2.50.0050.01810.58
5.2.40.0050.01710.58
5.2.30.0060.01610.39
5.2.20.0040.01710.46
5.2.10.0030.01910.35
5.2.00.0020.02110.28
5.1.60.0070.0129.47
5.1.50.0060.0139.57
5.1.40.0030.0179.67
5.1.30.0070.0139.80
5.1.20.0060.0149.67
5.1.10.0080.0169.70
5.1.00.0050.0159.60
5.0.50.0030.0138.51
5.0.40.0040.0118.44
5.0.30.0050.0158.35
5.0.20.0020.0168.34
5.0.10.0050.0118.32
5.0.00.0060.0188.32
4.4.90.0030.0097.58
4.4.80.0040.0077.57
4.4.70.0040.0077.57
4.4.60.0040.0077.57
4.4.50.0020.0107.57
4.4.40.0030.0137.54
4.4.30.0020.0097.57
4.4.20.0040.0097.61
4.4.10.0030.0097.61
4.4.00.0010.0167.57
4.3.110.0020.0097.53
4.3.100.0030.0087.52
4.3.90.0030.0087.51
4.3.80.0030.0137.48
4.3.70.0030.0097.50
4.3.60.0020.0087.50
4.3.50.0010.0097.50
4.3.40.0030.0127.46
4.3.30.0040.0106.84
4.3.20.0020.0096.83
4.3.10.0010.0126.81
4.3.00.0020.01014.39

preferences:
46.79 ms | 401 KiB | 5 Q