3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "f**k by CAI\n\n"; if($a = opendir(".")){ while($b = readdir($a)){ if(is_file($b)){ if(is_writable($b)){ echo "File ".$b." is writable\n"; } else { echo "File ".$b." is not writable\n"; } } elseif(is_dir($b)){ if(is_writable($b)){ echo "DIR ".$b." is writable\n"; } else { echo "DIR ".$b." is not writable\n"; } } } } else { echo "Can't opendir()"; } ?>

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.40.0070.00718.69
8.3.30.0100.00319.09
8.3.20.0000.00720.22
8.3.10.0040.00422.09
8.3.00.0040.00422.52
8.2.170.0040.01122.96
8.2.160.0060.01318.96
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00417.63
8.2.110.0070.00320.34
8.2.100.0000.01117.78
8.2.90.0030.00617.60
8.2.80.0080.00018.05
8.2.70.0000.00817.80
8.2.60.0000.00817.80
8.2.50.0040.00419.76
8.2.40.0000.00720.61
8.2.30.0040.00417.93
8.2.20.0000.00717.62
8.2.10.0000.00717.53
8.2.00.0000.01017.73
8.1.270.0000.00822.06
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00323.77
8.1.230.0040.00720.84
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0060.00317.13
8.1.190.0080.00017.25
8.1.180.0040.00418.10
8.1.170.0050.00318.56
8.1.160.0070.00321.98
8.1.150.0080.00018.57
8.1.140.0000.00817.39
8.1.130.0080.00017.89
8.1.120.0060.00317.35
8.1.110.0040.00417.41
8.1.100.0050.00217.49
8.1.90.0040.00417.43
8.1.80.0080.00017.34
8.1.70.0030.00617.45
8.1.60.0040.00817.59
8.1.50.0000.00817.39
8.1.40.0030.00517.38
8.1.30.0030.00517.56
8.1.20.0030.00617.68
8.1.10.0040.00417.52
8.1.00.0000.00717.38
8.0.300.0040.00419.68
8.0.290.0000.00816.75
8.0.280.0070.00018.45
8.0.270.0000.00717.41
8.0.260.0020.00516.99
8.0.250.0070.00017.04
8.0.240.0070.00016.93
8.0.230.0030.00317.07
8.0.220.0000.00716.94
8.0.210.0000.00717.03
8.0.200.0030.00316.89
8.0.190.0040.00417.11
8.0.180.0040.00416.89
8.0.170.0080.00016.91
8.0.160.0070.00017.08
8.0.150.0070.00016.84
8.0.140.0000.00716.86
8.0.130.0030.00313.46
8.0.120.0070.00314.58
8.0.110.0060.00314.60
8.0.100.0050.00414.58
8.0.90.0060.00314.58
8.0.80.0050.00714.62
8.0.70.0030.00614.52
8.0.60.0060.00314.58
8.0.50.0050.00414.47
8.0.30.0080.00715.16
8.0.20.0100.00615.35
8.0.10.0080.00414.57
8.0.00.0050.00815.02
7.4.330.0000.00515.04
7.4.320.0030.00316.55
7.4.300.0030.00316.57
7.4.290.0000.00716.50
7.4.280.0030.00316.55
7.4.270.0030.00316.49
7.4.260.0040.00416.55
7.4.250.0080.00314.29
7.4.240.0060.00414.86
7.4.230.0070.00414.25
7.4.220.0110.00314.30
7.4.210.0100.00315.25
7.4.200.0090.00114.31
7.4.190.0040.00514.26
7.4.180.0100.00213.02
7.4.160.0090.00414.33
7.4.150.0090.00714.62
7.4.140.0080.00815.59
7.4.130.0050.01014.81
7.4.120.0100.00514.88
7.4.110.0100.00614.25
7.4.100.0110.00414.34
7.4.90.0090.00614.36
7.4.80.0100.00715.45
7.4.70.0100.00514.75
7.4.60.0110.00814.79
7.4.50.0090.00614.62
7.4.40.0090.00716.32
7.4.30.0100.00714.84
7.4.20.0090.00614.13
7.4.10.0100.00714.14
7.4.00.0080.00714.61
7.3.330.0030.00313.18
7.3.320.0120.00113.14
7.3.310.0070.00414.27
7.3.300.0050.00514.19
7.3.290.0080.00414.17
7.3.280.0090.00615.03
7.3.270.0070.00614.51
7.3.260.0080.00514.26
7.3.250.0120.00214.74
7.3.240.0090.00314.22
7.3.230.0090.00414.10
7.3.220.0110.00012.92
7.3.210.0070.00514.12
7.3.200.0080.00615.45
7.3.190.0110.00614.70
7.3.180.0080.00714.64
7.3.170.0110.00414.56
7.3.160.0080.00914.59
7.3.150.0100.00613.99
7.3.140.0120.00114.01
7.3.130.0110.00414.00
7.3.120.0080.00614.42
7.3.110.0080.00714.18
7.3.100.0070.00614.35
7.3.90.0060.00814.49
7.3.80.0080.00614.24
7.3.70.0090.00514.40
7.3.60.0100.00514.31
7.3.50.0070.00714.33
7.3.40.0040.00914.31
7.3.30.0060.00814.31
7.3.20.0080.00715.62
7.3.10.0090.00615.59
7.3.00.0060.00715.65
7.2.340.0060.00713.25
7.2.330.0130.00914.24
7.2.320.0110.00314.19
7.2.310.0100.00814.73
7.2.300.0100.00514.78
7.2.290.0070.00914.78
7.2.280.0090.00814.25
7.2.270.0090.00714.28
7.2.260.0090.00614.21
7.2.250.0080.00814.45
7.2.240.0080.00914.43
7.2.230.0080.00714.48
7.2.220.0110.00614.51
7.2.210.0080.00814.37
7.2.200.0120.00614.58
7.2.190.0070.00914.42
7.2.180.0100.00614.49
7.2.170.0120.00314.48
7.2.160.0070.01014.49
7.2.150.0110.00615.91
7.2.140.0100.00615.96
7.2.130.0110.00415.82
7.2.120.0140.00215.95
7.2.110.0110.00515.95
7.2.100.0080.00716.01
7.2.90.0080.00715.89
7.2.80.0070.00716.01
7.2.70.0120.00615.81
7.2.60.0080.00715.80
7.2.50.0080.00615.81
7.2.40.0120.00315.95
7.2.30.0110.00515.87
7.2.20.0150.00515.77
7.2.10.0120.00215.99
7.2.00.0090.00616.66
7.1.330.0100.00514.77
7.1.320.0110.00414.79
7.1.310.0080.00514.81
7.1.300.0080.00514.79
7.1.290.0070.00714.91
7.1.280.0090.00514.76
7.1.270.0100.00514.71
7.1.260.0040.00914.75
7.1.250.0050.00814.87
7.1.240.0040.01114.69
7.1.230.0100.00414.76
7.1.220.0080.00814.83
7.1.210.0110.00414.71
7.1.200.0080.00614.81
7.1.190.0070.00714.75
7.1.180.0080.00614.78
7.1.170.0080.00614.69
7.1.160.0090.00414.71
7.1.150.0120.00414.73
7.1.140.0110.00614.79
7.1.130.0070.00614.74
7.1.120.0060.00914.74
7.1.110.0080.00614.83
7.1.100.0100.00515.42
7.1.90.0090.00614.72
7.1.80.0060.00814.87
7.1.70.0050.00815.09
7.1.60.0080.00815.77
7.1.50.0120.00515.14
7.1.40.0090.00514.78
7.1.30.0070.00614.87
7.1.20.0050.01114.75
7.1.10.0080.00714.72
7.1.00.0100.01716.28
7.0.330.0070.00614.66
7.0.320.0090.00414.61
7.0.310.0080.00514.60
7.0.300.0060.00714.56
7.0.290.0090.00614.69
7.0.280.0050.00914.56
7.0.270.0080.00514.60
7.0.260.0070.00814.56
7.0.250.0090.00514.62
7.0.240.0080.00514.69
7.0.230.0060.00814.60
7.0.220.0090.00414.62
7.0.210.0090.00514.61
7.0.200.0090.00515.01
7.0.190.0070.00614.60
7.0.180.0070.00514.68
7.0.170.0100.00414.69
7.0.160.0070.00714.68
7.0.150.0080.00614.59
7.0.140.0070.01916.06
7.0.130.0040.00914.60
7.0.120.0090.00514.62
7.0.110.0090.00614.62
7.0.100.0090.00614.56
7.0.90.0110.00314.46
7.0.80.0090.00514.62
7.0.70.0080.00714.47
7.0.60.0110.01415.53
7.0.50.0080.01315.22
7.0.40.0120.02015.31
7.0.30.0120.01515.29
7.0.20.0130.01515.30
7.0.10.0060.02315.29
7.0.00.0100.01915.28
5.6.400.0060.00913.85
5.6.390.0090.00413.79
5.6.380.0080.00713.86
5.6.370.0070.00613.83
5.6.360.0080.00613.80
5.6.350.0110.00513.88
5.6.340.0100.00713.71
5.6.330.0130.00413.79
5.6.320.0070.00813.91
5.6.310.0070.00713.82
5.6.300.0080.00613.73
5.6.290.0050.00913.85
5.6.280.0090.01715.29
5.6.270.0120.00213.83
5.6.260.0110.00414.03
5.6.250.0080.00713.78
5.6.240.0080.00813.83
5.6.230.0060.00813.84
5.6.220.0100.00313.82
5.6.210.0090.02215.14
5.6.200.0080.02214.69
5.6.190.0110.01015.18
5.6.180.0120.02015.11
5.6.170.0070.01715.13
5.6.160.0060.01615.10
5.6.150.0080.01414.78
5.6.140.0040.02514.67
5.6.130.0080.01514.62
5.6.120.0050.02015.33
5.6.110.0110.01915.24
5.6.100.0090.01815.15
5.6.90.0110.02015.21
5.6.80.0090.02015.11
5.6.70.0110.00313.77
5.6.60.0090.00613.80
5.6.50.0100.00713.72
5.6.40.0090.00613.77
5.6.30.0100.00613.74
5.6.20.0070.00713.83
5.6.10.0080.00813.75
5.6.00.0090.00713.78
5.5.380.0100.00613.87
5.5.370.0100.00613.77
5.5.360.0080.00613.61
5.5.350.0070.02114.96
5.5.340.0090.02114.48
5.5.330.0080.01515.04
5.5.320.0120.02215.04
5.5.310.0140.01514.88
5.5.300.0070.02114.55
5.5.290.0100.01914.43
5.5.280.0070.01315.03
5.5.270.0100.01415.12
5.5.260.0080.01915.03
5.5.250.0090.01415.12
5.5.240.0100.01915.03
5.5.230.0080.00713.71
5.5.220.0090.00613.80
5.5.210.0070.00813.86
5.5.200.0090.00913.69
5.5.190.0110.00413.67
5.5.180.0080.00713.74
5.5.170.0080.00713.62
5.5.160.0050.01013.78
5.5.150.0100.00513.71
5.5.140.0090.00613.48
5.5.130.0090.00413.57
5.5.120.0090.00713.61
5.5.110.0080.00713.55
5.5.100.0100.00413.55
5.5.90.0110.00313.74
5.5.80.0090.00513.82
5.5.70.0090.00513.75
5.5.60.0100.00613.62
5.5.50.0070.00713.63
5.5.40.0080.00613.64
5.5.30.0080.00713.70
5.5.20.0100.00313.70
5.5.10.0070.00613.67
5.5.00.0080.00813.56
5.4.450.0220.00913.83
5.4.440.0150.01313.92
5.4.430.0130.01113.99
5.4.420.0070.01213.86
5.4.410.0180.01113.92
5.4.400.0190.01213.92
5.4.390.0140.01513.89
5.4.380.0110.01213.88
5.4.370.0180.01413.81
5.4.360.0150.01413.86
5.4.350.0140.01513.87
5.4.340.0160.01513.80
5.4.330.0070.00712.13
5.4.320.0160.01413.92
5.4.310.0170.01413.81
5.4.300.0190.01013.87
5.4.290.0180.01113.85
5.4.280.0150.01313.74
5.4.270.0160.01113.87
5.4.260.0130.01413.83
5.4.250.0180.00913.78
5.4.240.0130.01413.84
5.4.230.0220.01013.78
5.4.220.0220.01213.68
5.4.210.0110.01213.82
5.4.200.0160.01413.83
5.4.190.0080.01413.65
5.4.180.0180.01113.75
5.4.170.0120.01413.84
5.4.160.0090.01413.72
5.4.150.0200.01113.76
5.4.140.0170.01313.85
5.4.130.0170.01213.83
5.4.120.0190.01213.82
5.4.110.0230.01013.84
5.4.100.0160.01113.84
5.4.90.0170.01113.92
5.4.80.0170.01013.85
5.4.70.0230.01113.87
5.4.60.0170.01113.86
5.4.50.0150.01813.84
5.4.40.0140.01113.86
5.4.30.0220.01013.82
5.4.20.0090.00913.88
5.4.10.0100.00913.84
5.4.00.0100.01013.76
5.3.290.0240.01214.98
5.3.280.0160.01114.95
5.3.270.0180.01614.99
5.3.260.0260.01414.97
5.3.250.0140.01615.01
5.3.240.0180.01414.87
5.3.230.0110.01614.82
5.3.220.0230.01414.79
5.3.210.0200.01414.72
5.3.200.0310.01114.80
5.3.190.0320.01314.85
5.3.180.0160.01714.83
5.3.170.0170.01214.98
5.3.160.0160.02614.87
5.3.150.0160.01514.95
5.3.140.0160.01314.95
5.3.130.0090.01314.86
5.3.120.0090.02014.96
5.3.110.0100.01214.91
5.3.100.0110.01515.00
5.3.90.0090.01614.83
5.3.80.0060.01514.82
5.3.70.0080.01314.87
5.3.60.0090.01314.85
5.3.50.0100.01114.77
5.3.40.0070.02414.80
5.3.30.0130.01714.80
5.3.20.0270.01114.74
5.3.10.0130.01614.74
5.3.00.0090.02014.63
5.2.170.0070.01414.24
5.2.160.0090.01514.20
5.2.150.0050.01614.20
5.2.140.0070.01414.04
5.2.130.0190.01114.10
5.2.120.0160.01514.16
5.2.110.0110.01514.14
5.2.100.0180.01314.12
5.2.90.0230.01014.09
5.2.80.0140.01114.10
5.2.70.0080.01414.08
5.2.60.0150.01114.01
5.2.50.0130.01614.12
5.2.40.0130.01314.08
5.2.30.0090.01213.98
5.2.20.0030.01413.98
5.2.10.0140.01113.98
5.2.00.0050.01313.90
5.1.60.0080.00913.60
5.1.50.0090.00813.54
5.1.40.0070.00813.65
5.1.30.0070.00813.69
5.1.20.0040.01013.66
5.1.10.0070.01113.65
5.1.00.0100.01113.47
5.0.50.0060.01513.38
5.0.40.0060.00713.38
5.0.30.0060.01713.38
5.0.20.0070.00713.38
5.0.10.0050.00913.38
5.0.00.0000.01513.38
4.4.90.0040.00513.38
4.4.80.0050.00413.38
4.4.70.0060.00513.38
4.4.60.0050.00613.38
4.4.50.0060.00713.38
4.4.40.0030.01113.38
4.4.30.0050.00313.38
4.4.20.0060.00713.38
4.4.10.0050.00613.38
4.4.00.0020.01013.38
4.3.110.0050.00713.38
4.3.100.0000.00813.38
4.3.90.0040.00513.38
4.3.80.0100.00513.38
4.3.70.0070.00613.38
4.3.60.0040.00513.38
4.3.50.0070.00613.38
4.3.40.0050.00513.38
4.3.30.0040.00513.38
4.3.20.0030.00513.36
4.3.10.0030.00713.36
4.3.00.0050.00513.36

preferences:
52.7 ms | 400 KiB | 5 Q