3v4l.org

run code in 300+ PHP versions simultaneously
<?php chdir('/tmp'); touch('test1.php'); touch('test2.php'); touch('test3.php'); $it = new GlobIterator("./*.php"); foreach ($it as $p) echo $p->getFilename() . " " . ($p->isFile() ? "IS" : "IS NOT") . " a file\n"; $it = new GlobIterator("*.php"); foreach ($it as $p) echo $p->getFilename() . " " . ($p->isFile() ? "IS" : "IS NOT") . " a file\n";

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.01216.50
8.3.50.0060.00918.29
8.3.40.0130.01018.78
8.3.30.0090.00618.63
8.3.20.0050.00322.13
8.3.10.0050.00322.09
8.3.00.0060.00323.79
8.2.180.0100.01018.65
8.2.170.0110.01122.96
8.2.160.0090.00618.94
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0070.00021.30
8.2.120.0040.00426.35
8.2.110.0040.00722.37
8.2.100.0040.00718.16
8.2.90.0040.00419.70
8.2.80.0000.00817.97
8.2.70.0070.00318.18
8.2.60.0550.01018.22
8.2.50.0530.01318.10
8.2.40.0630.00020.90
8.2.30.0560.00719.42
8.2.20.0000.00818.18
8.2.10.0000.00718.15
8.2.00.0040.00418.33
8.1.280.0040.01125.92
8.1.270.0040.00424.04
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00320.63
8.1.230.0110.00020.98
8.1.220.0040.00417.74
8.1.210.0080.00018.82
8.1.200.0060.00617.61
8.1.190.0600.01017.37
8.1.180.0530.01318.10
8.1.170.0560.01019.13
8.1.160.0470.01719.11
8.1.150.0450.01920.36
8.1.140.0030.00519.62
8.1.130.0000.00819.04
8.1.120.0060.00317.50
8.1.110.0040.00417.42
8.1.100.0040.00417.52
8.1.90.0060.00317.58
8.1.80.0000.00717.50
8.1.70.0060.00317.51
8.1.60.0090.00017.59
8.1.50.0030.00617.64
8.1.40.0030.00517.59
8.1.30.0030.00617.73
8.1.20.0040.00417.81
8.1.10.0080.00017.59
8.1.00.0050.00217.49
8.0.300.0040.00421.53
8.0.290.0090.00617.00
8.0.280.0520.01318.57
8.0.270.0000.00717.37
8.0.260.0720.00319.10
8.0.250.0550.00617.00
8.0.240.0000.00717.05
8.0.230.0480.01417.00
8.0.220.0560.00617.05
8.0.210.0040.00416.91
8.0.200.0030.00316.94
8.0.190.0040.00417.06
8.0.180.0500.02417.11
8.0.170.0000.00816.92
8.0.160.0040.00417.01
8.0.150.0580.02416.88
8.0.140.0000.01116.92
8.0.130.0000.00613.46
8.0.120.0000.00717.04
8.0.110.0040.00416.89
8.0.100.0040.00416.89
8.0.90.0040.00416.77
8.0.80.0140.00316.94
8.0.70.0000.00717.04
8.0.60.0000.00716.87
8.0.50.0040.00417.01
8.0.30.0110.00817.33
8.0.20.0110.01117.40
8.0.10.0040.00417.18
8.0.00.0060.01216.79
7.4.330.0050.00015.55
7.4.320.0470.02016.82
7.4.300.0060.00016.54
7.4.290.0580.01016.66
7.4.280.0690.01716.64
7.4.270.0030.00316.67
7.4.260.0000.00816.70
7.4.250.0040.00416.59
7.4.240.0000.00716.63
7.4.230.0050.00316.81
7.4.220.0140.01416.77
7.4.210.0100.00616.68
7.4.200.0040.00416.78
7.4.160.0080.00816.64
7.4.150.0150.00317.40
7.4.140.0120.00617.86
7.4.130.0120.00816.63
7.4.120.0070.01216.63
7.4.110.0120.01216.34
7.4.100.0090.01216.68
7.4.90.0120.00916.50
7.4.80.0070.01019.39
7.4.70.0130.01016.52
7.4.60.0130.00316.64
7.4.50.0070.01016.39
7.4.40.0070.01016.54
7.4.30.0120.00616.68
7.4.00.0070.01115.17
7.3.330.0040.00413.20
7.3.320.0080.00013.36
7.3.310.0000.00716.29
7.3.300.0030.00316.41
7.3.290.0030.00316.20
7.3.280.0080.00916.35
7.3.270.0130.00317.40
7.3.260.0110.00816.59
7.3.250.0060.01116.55
7.3.240.0050.01216.47
7.3.230.0100.00716.73
7.3.210.0110.00716.54
7.3.200.0060.01516.71
7.3.190.0030.01416.30
7.3.180.0140.00416.26
7.3.170.0080.01116.41
7.3.160.0090.01216.43
7.3.10.0120.00316.55
7.3.00.0040.00416.43
7.2.330.0130.00616.78
7.2.320.0140.00416.55
7.2.310.0120.00616.51
7.2.300.0090.01216.58
7.2.290.0040.01316.88
7.2.130.0090.00616.85
7.2.120.0060.00617.06
7.2.110.0030.00517.01
7.2.100.0030.01016.71
7.2.90.0000.01417.05
7.2.80.0000.01217.12
7.2.70.0090.00317.10
7.2.60.0050.00817.04
7.2.50.0080.00616.95
7.2.40.0080.00417.12
7.2.30.0030.00916.80
7.2.20.0030.01017.09
7.2.10.0070.00417.08
7.2.00.0040.01116.95
7.1.250.0040.00815.71
7.1.200.0060.00615.88
7.1.90.0040.00818.16
7.1.80.0060.00618.28
7.1.70.0030.01117.16
7.1.60.0150.01135.10
7.1.50.0170.01434.70
7.1.40.0170.01034.41
7.1.30.0130.01334.28
7.1.20.0100.01734.22
7.1.10.0030.01316.37
7.1.00.0030.01016.61
7.0.230.0000.01217.57
7.0.220.0040.00817.41
7.0.210.0060.00616.68
7.0.200.0070.00716.88
7.0.190.0000.01116.78
7.0.180.0090.00316.30
7.0.170.0070.00716.18
7.0.160.0100.00316.45
7.0.150.0030.01316.18
7.0.140.0040.00816.34
7.0.130.0060.00616.55
7.0.120.0030.01416.58
7.0.110.0070.00716.42
7.0.100.0000.01216.44
7.0.90.0060.00616.41
7.0.80.0030.00916.50
7.0.70.0060.00816.36
7.0.60.0060.00616.17
7.0.50.0100.00316.25
7.0.40.0030.00916.43
7.0.30.0100.00316.59
7.0.20.0130.00016.36
7.0.10.0030.01316.55
7.0.00.0000.01616.49

preferences:
86.26 ms | 400 KiB | 5 Q