3v4l.org

run code in 300+ PHP versions simultaneously
<?php if ($handle = opendir('/')) { echo "Directory handle: $handle\n"; echo "Entries:\n"; /* This is the correct way to loop over the directory. */ while (false !== ($entry = readdir($handle))) { echo "$entry\n"; } /* This is the WRONG way to loop over the directory. */ while ($entry = readdir($handle)) { echo "$entry\n"; } closedir($handle); }

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.0150.00418.55
8.3.50.0140.00721.09
8.3.40.0040.01118.98
8.3.30.0100.00320.25
8.3.20.0050.00320.44
8.3.10.0140.00421.05
8.3.00.0000.00723.66
8.2.180.0100.01016.75
8.2.170.0140.00322.96
8.2.160.0070.00720.57
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0050.00221.00
8.2.110.0030.00722.10
8.2.100.0060.00817.66
8.2.90.0050.00319.09
8.2.80.0040.00417.97
8.2.70.0040.00417.37
8.2.60.0090.00017.91
8.2.50.0030.00618.07
8.2.40.0000.00718.10
8.2.30.0040.00417.99
8.2.20.0030.00517.46
8.2.10.0000.00717.69
8.2.00.0030.00517.62
8.1.280.0090.01225.92
8.1.270.0070.00023.99
8.1.260.0040.00426.35
8.1.250.0020.00528.09
8.1.240.0040.00422.14
8.1.230.0000.01018.94
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0030.00617.13
8.1.190.0000.00817.35
8.1.180.0070.00018.10
8.1.170.0000.00918.74
8.1.160.0040.00418.83
8.1.150.0030.00918.59
8.1.140.0070.00017.30
8.1.130.0030.00317.93
8.1.120.0000.00717.45
8.1.110.0040.00417.30
8.1.100.0000.00717.40
8.1.90.0000.00717.46
8.1.80.0080.00017.42
8.1.70.0000.00717.39
8.1.60.0030.00617.51
8.1.50.0040.00417.43
8.1.40.0030.00517.35
8.1.30.0030.00517.46
8.1.20.0000.00917.49
8.1.10.0040.00417.40
8.1.00.0000.00817.34
8.0.300.0090.00018.77
8.0.290.0000.00816.75
8.0.280.0030.00318.48
8.0.270.0040.00417.26
8.0.260.0000.00616.89
8.0.250.0070.00016.91
8.0.240.0060.00317.01
8.0.230.0000.00717.05
8.0.220.0000.00716.96
8.0.210.0030.00316.93
8.0.200.0000.00616.90
8.0.190.0000.00716.98
8.0.180.0050.00316.98
8.0.170.0000.00716.88
8.0.160.0030.00516.93
8.0.150.0020.00516.80
8.0.140.0000.00916.87
8.0.130.0030.00313.34
8.0.120.0050.00614.59
8.0.110.0040.00614.61
8.0.100.0090.00214.49
8.0.90.0080.00314.46
8.0.80.0130.00114.55
8.0.70.0090.00214.56
8.0.60.0050.00514.58
8.0.50.0050.00614.52
8.0.30.0080.00815.17
8.0.20.0130.00715.38
8.0.10.0070.00414.52
8.0.00.0080.00515.09
7.4.330.0030.00314.93
7.4.320.0070.00016.46
7.4.300.0060.00016.55
7.4.290.0000.00716.43
7.4.280.0030.00316.47
7.4.270.0060.00016.55
7.4.260.0000.00513.19
7.4.250.0050.00514.29
7.4.240.0090.00214.43
7.4.230.0050.00714.33
7.4.220.0100.00614.35
7.4.210.0080.00515.40
7.4.200.0060.00314.41
7.4.190.0060.00414.36
7.4.180.0080.00413.34
7.4.160.0080.00514.37
7.4.150.0080.00714.59
7.4.140.0100.00615.56
7.4.130.0110.00314.93
7.4.120.0090.00614.83
7.4.110.0120.00114.37
7.4.100.0070.00914.35
7.4.90.0070.00814.35
7.4.80.0060.00815.51
7.4.70.0100.00414.75
7.4.60.0110.00614.75
7.4.50.0040.00814.72
7.4.40.0080.00616.28
7.4.30.0060.01114.75
7.4.20.0130.00214.21
7.4.10.0060.01014.40
7.4.00.0090.00714.43
7.3.330.0000.00713.23
7.3.320.0110.00213.22
7.3.310.0060.00514.24
7.3.300.0080.00214.18
7.3.290.0090.00314.15
7.3.280.0080.00715.05
7.3.270.0090.00614.60
7.3.260.0100.00716.26
7.3.250.0090.00614.77
7.3.240.0110.00314.27
7.3.230.0060.00414.25
7.3.220.0050.00312.90
7.3.210.0090.00214.08
7.3.200.0100.00515.37
7.3.190.0060.00814.68
7.3.180.0100.00314.65
7.3.170.0040.00714.64
7.3.160.0060.00914.54
7.3.150.0100.00413.98
7.3.140.0080.00414.08
7.3.130.0060.00614.31
7.3.120.0070.00714.32
7.3.110.0080.00414.27
7.3.100.0080.00414.21
7.3.90.0040.00814.29
7.3.80.0070.00614.27
7.3.70.0070.00514.28
7.3.60.0060.00714.23
7.3.50.0060.00414.30
7.3.40.0050.00514.33
7.3.30.0060.00514.28
7.3.20.0070.00515.70
7.3.10.0040.00815.84
7.3.00.0050.00715.96
7.2.340.0070.00513.30
7.2.330.0110.00314.25
7.2.320.0090.00614.29
7.2.310.0080.00714.85
7.2.300.0100.00614.70
7.2.290.0110.00514.78
7.2.280.0100.00714.28
7.2.270.0080.00914.30
7.2.260.0030.01214.50
7.2.250.0090.00714.37
7.2.240.0100.00914.45
7.2.230.0110.00514.48
7.2.220.0080.00514.46
7.2.210.0100.00514.50
7.2.200.0090.00514.44
7.2.190.0090.00714.43
7.2.180.0070.00814.51
7.2.170.0100.00314.45
7.2.160.0080.00614.57
7.2.150.0100.00515.77
7.2.140.0060.01015.89
7.2.130.0100.00616.20
7.2.120.0070.00616.19
7.2.110.0090.00816.14
7.2.100.0110.00916.26
7.2.90.0060.00916.20
7.2.80.0080.00716.19
7.2.70.0070.00816.21
7.2.60.0080.00716.16
7.2.50.0070.00716.14
7.2.40.0090.00516.26
7.2.30.0080.00716.22
7.2.20.0080.00616.14
7.2.10.0050.01016.23
7.2.00.0070.00716.64
7.1.330.0120.00314.84
7.1.320.0080.00715.01
7.1.310.0080.00714.90
7.1.300.0090.00514.83
7.1.290.0070.00714.84
7.1.280.0080.00514.83
7.1.270.0100.00414.85
7.1.260.0070.00714.87
7.1.250.0080.00615.05
7.1.240.0050.00714.99
7.1.230.0070.00614.97
7.1.220.0070.00615.03
7.1.210.0080.00615.01
7.1.200.0080.00715.07
7.1.190.0100.00415.02
7.1.180.0070.00615.04
7.1.170.0100.00715.01
7.1.160.0050.00814.96
7.1.150.0070.00715.08
7.1.140.0060.00715.01
7.1.130.0080.00515.01
7.1.120.0150.00615.03
7.1.110.0080.00514.91
7.1.100.0060.00815.48
7.1.90.0080.00515.00
7.1.80.0090.00415.00
7.1.70.0050.00815.32
7.1.60.0090.00815.65
7.1.50.0050.01015.35
7.1.40.0060.00915.04
7.1.30.0080.00615.02
7.1.20.0070.00714.89
7.1.10.0090.00714.98
7.1.00.0090.00916.30
7.0.330.0050.00614.82
7.0.320.0080.00514.71
7.0.310.0060.00614.65
7.0.300.0060.00614.85
7.0.290.0070.00514.64
7.0.280.0050.00814.80
7.0.270.0080.00514.72
7.0.260.0070.00514.65
7.0.250.0080.00614.76
7.0.240.0070.00614.68
7.0.230.0080.00414.80
7.0.220.0100.00514.85
7.0.210.0080.00514.81
7.0.200.0060.00615.06
7.0.190.0080.00614.82
7.0.180.0090.00614.80
7.0.170.0120.00414.85
7.0.160.0070.00514.78
7.0.150.0070.00714.74
7.0.140.0070.01715.98
7.0.130.0060.00714.81
7.0.120.0070.00914.70
7.0.110.0080.00514.79
7.0.100.0070.00714.78
7.0.90.0100.00414.67
7.0.80.0090.00514.69
7.0.70.0100.00314.64
7.0.60.0050.02115.59
7.0.50.0070.01215.27
7.0.40.0080.01114.98
7.0.30.0110.01114.99
7.0.20.0160.01414.96
7.0.10.0110.01815.08
7.0.00.0060.02014.99
5.6.400.0050.00613.75
5.6.390.0100.00713.88
5.6.380.0090.00413.83
5.6.370.0090.00514.01
5.6.360.0080.00613.93
5.6.350.0050.00713.90
5.6.340.0070.00613.98
5.6.330.0070.00614.03
5.6.320.0080.00514.11
5.6.310.0080.00714.04
5.6.300.0070.00813.85
5.6.290.0080.00713.88
5.6.280.0060.01815.18
5.6.270.0080.00613.87
5.6.260.0080.00614.04
5.6.250.0090.00513.97
5.6.240.0090.00613.95
5.6.230.0090.00413.95
5.6.220.0070.00613.92
5.6.210.0050.02115.02
5.6.200.0100.01514.67
5.6.190.0090.01415.05
5.6.180.0140.01115.01
5.6.170.0100.01515.00
5.6.160.0090.01514.95
5.6.150.0110.01314.66
5.6.140.0080.01514.69
5.6.130.0080.01214.69
5.6.120.0040.01515.11
5.6.110.0090.01714.99
5.6.100.0070.02115.07
5.6.90.0110.01315.01
5.6.80.0060.01514.84
5.6.70.0130.01615.00
5.6.60.0070.00713.87
5.6.50.0100.00513.86
5.6.40.0060.00713.81
5.6.30.0100.00513.88
5.6.20.0100.00513.81
5.6.10.0100.00513.89
5.6.00.0060.00913.84
5.5.380.0070.00713.14
5.5.370.0090.00513.25
5.5.360.0060.00813.11
5.5.350.0080.01314.35
5.5.340.0070.01313.98
5.5.330.0070.01914.45
5.5.320.0110.01314.24
5.5.310.0080.01714.40
5.5.300.0060.01313.99
5.5.290.0080.01413.96
5.5.280.0080.01014.38
5.5.270.0080.01714.36
5.5.260.0050.01414.53
5.5.250.0090.01814.41
5.5.240.0070.01914.37
5.5.230.0080.00613.25
5.5.220.0060.00813.19
5.5.210.0100.00413.27
5.5.200.0080.00713.09
5.5.190.0070.00613.07
5.5.180.0070.00713.17
5.5.170.0090.00513.12
5.5.160.0080.00613.03
5.5.150.0060.00813.16
5.5.140.0070.00713.08
5.5.130.0090.00312.97
5.5.120.0060.00613.08
5.5.110.0090.00413.01
5.5.100.0080.00513.13
5.5.90.0050.00713.19
5.5.80.0060.00713.24
5.5.70.0100.00313.18
5.5.60.0080.00613.20
5.5.50.0060.00713.19
5.5.40.0070.00613.16
5.5.30.0040.00813.26
5.5.20.0100.00313.20
5.5.10.0070.00613.17
5.5.00.0060.00613.13
5.4.450.0050.01613.50
5.4.440.0050.01713.46
5.4.430.0050.01713.47
5.4.420.0070.00913.50
5.4.410.0080.00913.31
5.4.400.0050.01113.32
5.4.390.0050.01213.35
5.4.380.0070.01513.42
5.4.370.0060.01613.37
5.4.360.0050.01413.37
5.4.350.0070.01713.36
5.4.340.0070.01713.26
5.4.330.0070.00412.19
5.4.320.0090.01113.39
5.4.310.0060.01513.40
5.4.300.0040.01313.39
5.4.290.0060.01313.41
5.4.280.0060.01713.32
5.4.270.0030.01613.39
5.4.260.0050.01213.30
5.4.250.0050.01713.35
5.4.240.0070.01613.34
5.4.230.0050.01213.25
5.4.220.0060.01313.25
5.4.210.0050.01813.28
5.4.200.0060.01713.33
5.4.190.0040.01413.34
5.4.180.0070.01013.26
5.4.170.0070.01113.30
5.4.160.0060.01513.32
5.4.150.0070.01213.31
5.4.140.0040.01112.99
5.4.130.0040.01112.87
5.4.120.0060.01112.93
5.4.110.0080.00912.93
5.4.100.0070.00912.97
5.4.90.0070.01212.84
5.4.80.0070.01613.00
5.4.70.0060.01412.91
5.4.60.0030.01812.94
5.4.50.0050.01712.99
5.4.40.0080.01512.86
5.4.30.0080.01312.96
5.4.20.0050.01613.01
5.4.10.0090.01112.98
5.4.00.0060.01012.81
5.3.290.0030.01612.81
5.3.280.0050.01412.88
5.3.270.0050.01412.87
5.3.260.0050.01712.83
5.3.250.0040.01112.86
5.3.240.0070.01012.75
5.3.230.0040.01112.72
5.3.220.0050.00912.69
5.3.210.0030.01412.71
5.3.200.0040.01212.70
5.3.190.0070.01612.76
5.3.180.0070.01512.81
5.3.170.0060.01412.80
5.3.160.0060.01712.82
5.3.150.0060.01712.76
5.3.140.0060.01712.72
5.3.130.0040.01712.81
5.3.120.0050.01512.77
5.3.110.0040.01812.71
5.3.100.0060.01012.69
5.3.90.0020.01312.64
5.3.80.0070.01012.66
5.3.70.0050.01212.64
5.3.60.0060.01712.69
5.3.50.0050.01312.56
5.3.40.0060.01312.66
5.3.30.0060.01612.68
5.3.20.0030.01412.63
5.3.10.0060.01412.46
5.3.00.0050.01712.53
5.2.170.0080.01211.82
5.2.160.0060.01311.80
5.2.150.0080.01011.81
5.2.140.0080.01411.77
5.2.130.0050.01611.76
5.2.120.0060.01311.88
5.2.110.0050.01211.82
5.2.100.0060.01211.83
5.2.90.0060.01111.76
5.2.80.0060.01611.73
5.2.70.0060.01811.72
5.2.60.0040.01411.70
5.2.50.0030.01411.75
5.2.40.0070.01611.75
5.2.30.0040.01211.66
5.2.20.0050.01611.64
5.2.10.0070.01211.66
5.2.00.0060.01211.65
5.1.60.0040.01411.43
5.1.50.0040.01411.36
5.1.40.0060.01411.42
5.1.30.0070.00611.45
5.1.20.0040.01111.40
5.1.10.0030.01611.34
5.1.00.0050.00811.29
5.0.50.0050.00811.19
5.0.40.0030.01011.19
5.0.30.0060.01411.19
5.0.20.0040.01111.19
5.0.10.0040.01311.19
5.0.00.0050.01411.19
4.4.90.0030.01011.19
4.4.80.0020.00711.19
4.4.70.0040.00611.19
4.4.60.0030.00911.19
4.4.50.0040.00711.19
4.4.40.0020.01411.19
4.4.30.0010.01011.19
4.4.20.0030.00611.19
4.4.10.0030.00711.19
4.4.00.0020.01211.19
4.3.110.0030.00911.19
4.3.100.0020.01011.19
4.3.90.0020.01011.19
4.3.80.0030.01111.19
4.3.70.0020.00911.19
4.3.60.0050.00511.19
4.3.50.0040.00711.19
4.3.40.0030.01211.19
4.3.30.0010.00911.19
4.3.20.0030.00711.19
4.3.10.0020.00711.19
4.3.00.0020.00711.19

preferences:
48.1 ms | 400 KiB | 5 Q