3v4l.org

run code in 300+ PHP versions simultaneously
<?php $directory = array ( 0 => '.', 1 => '..', 2 => '.ftpquota', 3 => 'error_log', 4 => 'index.php', 5 => 'index2.php' ); $directory = array_filter($directory, function ($name) { return !in_array($name, array('.', '..')); }); print_r($directory); $directory = array ( 0 => '.', 1 => '..', 2 => '.ftpquota', 3 => 'error_log', 4 => 'index.php', 5 => 'index2.php' ); $directory = array_filter($directory, function ($name) { return !preg_match('/^\.\.?$/', $name); }); print_r($directory);

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.4.120.0090.00824.16
8.4.110.0040.00819.06
8.4.100.0110.00318.82
8.4.90.0120.00920.69
8.4.80.0080.01018.06
8.4.70.0090.00118.05
8.4.60.0090.01018.87
8.4.50.0080.01320.59
8.4.40.0130.00618.03
8.4.30.0080.01120.42
8.4.20.0100.01019.83
8.4.10.0000.00819.51
8.3.250.0070.00618.68
8.3.240.0060.00216.98
8.3.230.0120.00716.76
8.3.220.0100.00717.28
8.3.210.0050.00318.47
8.3.200.0080.00116.82
8.3.190.0020.00717.20
8.3.180.0110.00816.84
8.3.170.0080.01117.20
8.3.160.0120.00618.59
8.3.150.0090.00016.76
8.3.140.0060.00617.17
8.3.130.0130.00718.52
8.3.120.0110.00720.48
8.3.110.0080.00018.37
8.3.100.0090.00018.46
8.3.90.0040.00426.77
8.3.80.0100.00019.36
8.3.70.0000.01516.75
8.3.60.0180.00417.00
8.3.50.0070.01224.65
8.3.40.0130.00722.04
8.3.30.0040.01118.94
8.3.20.0050.00224.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.290.0120.00420.11
8.2.280.0100.00518.43
8.2.270.0090.00617.13
8.2.260.0100.00718.37
8.2.250.0000.00916.98
8.2.240.0070.01116.81
8.2.230.0000.00820.94
8.2.220.0110.00724.06
8.2.210.0030.00526.77
8.2.200.0030.00618.88
8.2.190.0110.00418.71
8.2.180.0070.01425.92
8.2.170.0060.00918.99
8.2.160.0090.00622.96
8.2.150.0070.00025.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00026.35
8.2.110.0070.00320.52
8.2.100.0090.00318.03
8.2.90.0000.00817.88
8.2.80.0000.00818.91
8.2.70.0030.00617.80
8.2.60.0050.00317.88
8.2.50.0000.00817.63
8.2.40.0080.00017.75
8.2.30.0080.00018.15
8.2.20.0040.00418.01
8.2.10.0040.00419.21
8.2.00.0000.00819.20
8.1.330.0130.00821.76
8.1.320.0130.00616.43
8.1.310.0070.01118.13
8.1.300.0090.00017.98
8.1.290.0100.00030.84
8.1.280.0070.00725.92
8.1.270.0090.00021.92
8.1.260.0000.00728.09
8.1.250.0080.00028.09
8.1.240.0030.00720.96
8.1.230.0040.00719.09
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0040.00817.37
8.1.190.0000.00817.25
8.1.180.0030.00618.10
8.1.170.0000.00717.62
8.1.160.0000.00718.79
8.1.150.0080.00018.92
8.1.140.0080.00018.84
8.1.130.0070.00020.04
8.1.120.0070.00317.63
8.1.110.0070.00017.60
8.1.100.0040.00417.64
8.1.90.0030.00617.50
8.1.80.0030.00517.50
8.1.70.0030.00317.64
8.1.60.0000.00817.75
8.1.50.0030.00617.56
8.1.40.0030.00617.70
8.1.30.0040.00417.68
8.1.20.0050.00317.70
8.1.10.0050.00317.57
8.1.00.0030.00617.48
8.0.300.0050.00318.77
8.0.290.0040.00416.88
8.0.280.0030.00318.50
8.0.270.0030.00518.07
8.0.260.0000.00618.50
8.0.250.0000.00717.08
8.0.240.0030.00517.05
8.0.230.0000.00716.96
8.0.220.0080.00017.03
8.0.210.0070.00017.04
8.0.200.0040.00417.15
8.0.190.0080.00017.13
8.0.180.0050.00317.09
8.0.170.0040.00417.06
8.0.160.0000.00717.04
8.0.150.0000.00816.98
8.0.140.0040.00416.90
8.0.130.0030.00313.46
8.0.120.0000.00716.82
8.0.110.0030.00516.96
8.0.100.0080.00017.06
8.0.90.0050.00317.09
8.0.80.0090.00917.02
8.0.70.0000.00717.06
8.0.60.0000.00716.91
8.0.50.0040.00416.95
8.0.30.0100.00717.27
8.0.20.0130.00617.29
8.0.10.0000.00717.22
8.0.00.0070.01117.02
7.4.330.0000.00515.55
7.4.320.0070.00016.83
7.4.300.0070.00016.70
7.4.290.0000.00916.55
7.4.280.0070.00016.70
7.4.270.0070.00016.82
7.4.260.0030.00313.46
7.4.250.0000.00816.80
7.4.240.0080.00016.83
7.4.230.0000.00716.88
7.4.220.0030.00316.75
7.4.210.0100.00816.75
7.4.200.0030.00316.79
7.4.130.0110.00716.78
7.4.120.0100.00716.81
7.4.110.0050.01416.55
7.4.100.0100.00716.89
7.4.90.0140.01116.70
7.4.80.0040.01416.65
7.4.70.0120.00616.64
7.4.60.0150.00616.46
7.4.50.0150.00416.55
7.4.40.0090.00816.69
7.4.30.0090.00916.52
7.4.20.0060.01216.49
7.4.10.0200.00316.45
7.4.00.0000.01716.67
7.3.330.0000.00616.34
7.3.320.0060.00013.45
7.3.310.0030.00616.48
7.3.300.0030.00316.39
7.3.290.0100.00616.46
7.3.260.0140.00416.59
7.3.240.0140.01016.65
7.3.230.0090.01216.73
7.3.220.0130.00416.68
7.3.210.0130.00916.42
7.3.200.0100.00716.74
7.3.190.0090.00916.71
7.3.180.0070.01316.79
7.3.170.0120.00616.49
7.3.160.0060.01216.75
7.3.150.0070.01116.60
7.3.140.0070.01316.45
7.3.130.0080.00816.41
7.3.120.0120.00616.68
7.3.110.0210.00016.63
7.3.100.0070.01016.58
7.3.90.0070.01016.54
7.3.80.0120.00516.70
7.3.70.0070.01116.60
7.3.60.0160.00516.50
7.3.50.0130.00716.59
7.3.40.0070.01016.48
7.3.30.0100.01016.34
7.3.20.0040.01516.60
7.3.10.0030.01516.54
7.3.00.0040.01516.52
7.2.340.0040.01516.71
7.2.330.0120.00616.84
7.2.320.0030.01616.80
7.2.310.0060.01116.75
7.2.300.0130.00316.78
7.2.290.0030.01416.74
7.2.280.0140.00416.64
7.2.270.0070.01016.85
7.2.260.0140.01117.00
7.2.250.0060.01516.80
7.2.240.0120.00616.67
7.2.230.0140.01016.66
7.2.220.0130.00516.76
7.2.210.0100.00916.65
7.2.200.0090.00916.90
7.2.190.0110.00716.60
7.2.180.0070.01116.89
7.2.170.0060.00916.50
7.2.160.0090.00916.61
7.2.150.0160.00316.82
7.2.140.0090.01416.61
7.2.130.0080.01116.62
7.2.120.0060.01516.71
7.2.110.0060.01216.65
7.2.100.0070.01116.72
7.2.90.0190.00716.79
7.2.80.0050.01316.81
7.2.70.0100.01016.93
7.2.60.0130.00616.94
7.2.50.0110.00716.96
7.2.40.0070.01116.97
7.2.30.0120.00616.82
7.2.20.0100.01716.67
7.2.10.0120.00616.71
7.2.00.0110.00616.92

preferences:
34.57 ms | 403 KiB | 5 Q