3v4l.org

run code in 300+ PHP versions simultaneously
<?php function rglob($pattern, $flags = 0) { $files = glob($pattern, $flags); foreach(glob(dirname($pattern).'/*', GLOB_ONLYDIR|GLOB_NOSORT) as $dir) { $files = array_merge($files, rglob($dir.'/'.basename($pattern), $flags)); } return $files; } foreach(rglob(getcwd().'/*', GLOB_ONLYDIR) as $f){ printf("<h1>dir: %s perms: %s writable: %s</h1><br>", $f, substr(sprintf('%o', fileperms($f)), -4), is_writable($f) ? 'True' : 'False'); }

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.0030.01325.92
8.3.50.0140.01025.92
8.3.40.0120.00925.92
8.2.180.0170.00325.92
8.2.170.0170.00325.92
8.1.280.0100.01325.92
8.0.121.3220.06116.04
8.0.111.4020.05516.22
8.0.101.4350.06716.40
8.0.91.4500.05716.40
8.0.81.4330.07416.21
8.0.71.4430.06216.06
8.0.61.4310.07216.05
8.0.51.4430.06216.13
8.0.31.1540.05016.08
8.0.21.1600.04816.31
8.0.11.4320.06816.00
8.0.01.1590.04916.57
7.4.251.4450.05615.70
7.4.241.1440.05015.63
7.4.231.3600.06015.73
7.4.221.3340.06115.62
7.4.210.8680.03915.87
7.4.201.2830.05116.20
7.4.191.2930.04216.53
7.4.181.9230.08015.99
7.4.161.2880.05716.05
7.4.151.2830.05616.32
7.4.140.9580.05516.62
7.4.130.9670.04816.06
7.4.120.9680.03916.28
7.4.111.2840.05316.14
7.4.101.2820.06016.38
7.4.91.2610.08316.01
7.4.81.3010.04216.88
7.4.71.2960.04615.91
7.4.61.2830.06115.84
7.4.51.2680.06916.07
7.4.41.2670.07318.25
7.4.31.2810.06316.52
7.4.21.9230.07516.41
7.4.11.9150.08316.06
7.4.01.2690.05815.15
7.3.311.2890.04715.68
7.3.301.2760.05915.89
7.3.291.2840.05416.09
7.3.280.7850.02916.24
7.3.271.2910.05216.49
7.3.261.2800.05515.93
7.3.250.9600.05116.07
7.3.241.2820.06015.79
7.3.231.2780.06515.82
7.3.221.9170.08515.69
7.3.211.2790.06416.15
7.3.201.2860.06017.23
7.3.191.2790.06316.38
7.3.181.2770.06416.25
7.3.171.2860.06016.11
7.3.161.2630.07115.81
7.3.151.9240.07515.60
7.3.141.9060.09515.88
7.3.131.9180.08316.05
7.3.121.2790.06115.68
7.3.111.9250.07316.16
7.3.101.9280.07515.52
7.3.91.9150.08716.13
7.3.81.9320.06815.54
7.3.71.9430.06715.74
7.3.61.9060.09816.32
7.3.51.9180.08316.32
7.3.41.9290.07716.30
7.3.31.8960.10716.38
7.3.21.9210.07817.46
7.3.11.9340.06817.27
7.3.01.9210.07817.28
7.2.341.9300.06616.20
7.2.331.2790.06216.64
7.2.321.2890.05716.64
7.2.311.2730.07216.62
7.2.301.2900.05216.62
7.2.291.2890.05016.36
7.2.281.9390.06415.80
7.2.271.9170.08515.60
7.2.261.9110.09215.66
7.2.251.9080.09316.42
7.2.241.9060.10016.63
7.2.231.9270.07516.70
7.2.221.9260.08016.44
7.2.211.9240.08416.14
7.2.201.9340.06615.92
7.2.191.9210.07815.77
7.2.181.9050.09015.89
7.2.171.9080.09516.45
7.2.161.9170.08316.39
7.2.151.9280.07717.52
7.2.141.9060.08617.49
7.2.131.9030.08817.53
7.2.121.9160.08317.51
7.2.111.9170.08017.62
7.2.101.9050.09317.49
7.2.91.2900.05816.53
7.2.81.2980.05116.55
7.2.71.3610.05216.65
7.2.61.2790.06416.60
7.2.51.3430.06416.68
7.2.41.3380.05616.60
7.2.31.3410.06716.62
7.2.21.3110.06016.72
7.2.11.2740.06516.75
7.2.01.3350.05716.69
7.1.331.8890.11316.45
7.1.321.9040.08816.51
7.1.311.9230.08016.40
7.1.301.9230.07516.45
7.1.291.9130.09216.36
7.1.281.9290.07016.46
7.1.271.9090.08916.52
7.1.261.8860.10316.36
7.1.251.9170.07416.27
7.1.241.9000.08716.36
7.1.231.9030.09316.49
7.1.221.9190.07616.52
7.1.211.2800.06015.67
7.1.201.2900.05215.61
7.1.191.3720.05315.53
7.1.181.2890.05015.49
7.1.171.3290.06915.51
7.1.161.3130.05215.46
7.1.151.3290.05815.59
7.1.141.2830.06315.60
7.1.131.3380.06615.51
7.1.121.3090.06615.52
7.1.111.3160.06015.47
7.1.101.2980.05915.52
7.1.91.3550.04615.55
7.1.81.2970.04415.48
7.1.71.3290.07415.46
7.1.61.2890.05921.51
7.1.51.3210.05621.44
7.1.41.3000.06621.49
7.1.31.2880.05821.60
7.1.21.2880.06021.56
7.1.11.2900.04615.54
7.1.01.2800.05815.57
7.0.331.9200.06616.28
7.0.321.9190.08016.18
7.0.311.2480.07414.52
7.0.301.3100.07114.59
7.0.291.2720.05814.63
7.0.281.3270.05515.23
7.0.271.3310.05115.30
7.0.261.3160.06815.23
7.0.251.2820.05215.47
7.0.241.3360.05315.33
7.0.231.3340.04615.35
7.0.221.2820.05415.47
7.0.211.2900.05015.45
7.0.201.3450.05015.39
7.0.191.2790.06415.30
7.0.181.2830.05715.36
7.0.171.2740.06315.46
7.0.161.2910.05715.28
7.0.151.2880.05515.31
7.0.141.2870.06015.30
7.0.131.2880.07015.33
7.0.121.2590.07315.37
7.0.111.3100.05115.40
7.0.101.2780.06215.29
7.0.91.3120.05615.24
7.0.81.2100.06214.66
7.0.71.2480.07114.50
7.0.61.2830.05315.11
7.0.51.2860.05515.20
7.0.41.2830.05315.35
7.0.31.2730.05415.32
7.0.21.2630.07015.30
7.0.11.2980.06315.41
7.0.01.3000.05915.33
5.6.401.8960.09915.26
5.6.391.8780.11815.65
5.6.381.9030.09315.61
5.6.371.8930.11315.61
5.6.361.9040.10315.09
5.6.351.8880.10315.12
5.6.341.8860.10414.90
5.6.331.8710.10014.63
5.6.321.8540.10214.66
5.6.311.9010.08715.50
5.6.301.2730.06315.05
5.6.291.2660.07014.97
5.6.281.2650.06614.63
5.6.271.2490.08514.63
5.6.261.2550.08514.63
5.6.251.2720.06114.70
5.6.241.2620.07514.72
5.6.231.2740.06315.09
5.6.221.2660.06515.00
5.6.211.2750.06315.03
5.6.201.2720.06814.93
5.6.191.2680.05314.66
5.6.181.2620.06614.78
5.6.171.2550.08214.68
5.6.161.2670.07014.99
5.6.151.2770.05215.07
5.6.141.2800.05515.08
5.6.131.2680.06014.93
5.6.121.2650.07514.77
5.6.111.2650.06714.56
5.6.101.2580.07814.62
5.6.91.2620.06714.74
5.6.81.2650.06114.96
5.6.71.2780.05815.10
5.6.61.2810.05615.23
5.6.51.2650.06714.87
5.6.41.2660.06014.64
5.6.31.2640.05914.77
5.6.21.2630.07914.70
5.6.11.2580.08214.90
5.6.01.2870.05614.71
5.5.381.2830.05314.14
5.5.371.2750.06414.08
5.5.361.2660.07113.78
5.5.351.2710.06213.55
5.5.341.2470.08713.64
5.5.331.2680.06613.68
5.5.321.2600.08013.67
5.5.311.2780.05813.86
5.5.301.2660.06614.00
5.5.291.2530.06513.61
5.5.281.2610.07013.65
5.5.271.2620.07213.51
5.5.261.2750.05713.63
5.5.251.2730.06213.65
5.5.241.2670.06613.86
5.5.231.2650.07613.92
5.5.221.2650.07413.83
5.5.211.2690.06814.10
5.5.201.2700.07013.75
5.5.191.2690.06413.69
5.5.181.2640.07113.62
5.5.171.2820.05714.66
5.5.161.2730.06813.36
5.5.151.2810.05714.06
5.5.141.2610.07514.09
5.5.131.2420.08913.82
5.5.121.2750.06613.43
5.5.111.2700.06913.55
5.5.101.2710.06513.62
5.5.91.2780.06113.66
5.5.81.2560.07813.94
5.5.71.2750.06314.19
5.5.61.2750.05913.99
5.5.51.2600.06313.71
5.5.41.1770.07413.54
5.5.31.1340.05513.38
5.5.21.1310.05213.48
5.5.10.9530.05313.07
5.5.00.9580.05213.51
5.4.450.9330.07313.72
5.4.440.9460.05913.82
5.4.430.9520.05613.53
5.4.420.9510.05613.08
5.4.410.9580.05313.08
5.4.400.9530.05413.14
5.4.390.9420.06013.21
5.4.380.9630.04313.67
5.4.370.9550.05213.80
5.4.360.9390.06513.51
5.4.350.9400.06713.34
5.4.340.9520.05113.03
5.4.330.9650.04513.31
5.4.320.9410.06312.90
5.4.310.9590.04113.31
5.4.300.9680.04213.72
5.4.290.9410.06613.76
5.4.280.9630.04513.49
5.4.270.9390.07313.11
5.4.260.9540.05113.06
5.4.250.9720.03813.21
5.4.240.9490.05613.22
5.4.230.9440.06013.27
5.4.220.9530.05513.52
5.4.210.9420.06713.52
5.4.200.9620.04813.47
5.4.190.9600.05012.91
5.4.180.9480.06313.08
5.4.170.9390.07213.22
5.4.160.9360.06813.11
5.4.150.9520.05813.35
5.4.140.9720.03613.60
5.4.130.9320.07413.71
5.4.120.9610.04713.58
5.4.110.9540.05313.17
5.4.100.9470.05313.11
5.4.90.9340.06712.87
5.4.80.9640.04113.12
5.4.70.9610.04313.37
5.4.60.9590.04913.85
5.4.50.9590.05213.76
5.4.40.9630.04713.41
5.4.30.9320.07513.11
5.4.20.9510.05613.23
5.4.10.9370.06913.04
5.4.00.9420.06813.02
5.3.290.9440.06313.05
5.3.280.9470.06113.23
5.3.270.9460.05113.11
5.3.260.9520.05512.94
5.3.250.9460.06212.94
5.3.240.9560.04812.88
5.3.230.9560.05012.81
5.3.220.9660.04413.06
5.3.210.9590.04713.51
5.3.200.9450.06313.51
5.3.190.9240.08713.38
5.3.180.9310.07112.96
5.3.170.9800.02712.80
5.3.160.9430.06413.10
5.3.150.9390.06712.88
5.3.140.9500.05813.27
5.3.130.9580.05213.61
5.3.120.9550.05413.53
5.3.110.9570.05712.78
5.3.100.9410.06512.91
5.3.90.9470.06012.93
5.3.80.9440.06612.95
5.3.70.9610.05212.82
5.3.60.9340.07113.19
5.3.50.9410.07013.47
5.3.40.9280.07613.55
5.3.30.9440.06313.07
5.3.20.9500.05612.93
5.3.10.9500.05612.72
5.3.00.9400.06912.77
5.2.170.9400.06312.39
5.2.160.9400.06612.94
5.2.150.9540.05412.88
5.2.140.9390.06912.97
5.2.130.9480.05812.47
5.2.120.9500.05712.25
5.2.110.9570.05012.33
5.2.100.9360.07312.34
5.2.90.9370.07312.46
5.2.80.9490.05912.91
5.2.70.9580.05012.93
5.2.60.9380.06812.74
5.2.50.9420.05912.32
5.2.40.9240.08012.17
5.2.30.9440.05912.32
5.2.20.0060.00611.07
5.2.10.0050.00510.99
5.2.00.0060.00411.04
5.1.60.0070.00310.62
5.1.50.0080.00310.75
5.1.40.0100.00010.68
5.1.30.0080.00110.86
5.1.20.0040.00610.79
5.1.10.0060.00310.75
5.1.00.0020.00710.78
5.0.50.0040.00310.48
5.0.40.0020.00710.48
5.0.30.0040.00310.48
5.0.20.0040.00510.48
5.0.10.0050.00310.48
5.0.00.0050.00110.48
4.4.90.0010.00510.48
4.4.80.0040.00210.48
4.4.70.0030.00110.48
4.4.60.0000.00510.48
4.4.50.0010.00410.48
4.4.40.0020.00410.48
4.4.30.0010.00410.48
4.4.20.0030.00210.48
4.4.10.0000.00510.48
4.4.00.0000.00610.48
4.3.110.0020.00310.48
4.3.100.0060.00010.48
4.3.90.0020.00410.48
4.3.80.0000.00610.48
4.3.70.0040.00210.48
4.3.60.0060.00010.48
4.3.50.0000.00610.48
4.3.40.0030.00310.48
4.3.30.0050.00010.48
4.3.20.0030.00210.48
4.3.10.0050.00010.48
4.3.00.0040.00110.48

preferences:
45.58 ms | 401 KiB | 5 Q