3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo function_exists('dir') ? 'yes' : 'no', function_exists('getdir') ? 'yes' : 'no'; var_dump(getdir('/tmp'));

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.0060.00918.31
8.3.50.0070.01417.74
8.3.40.0130.00618.91
8.3.30.0120.00618.52
8.3.20.0070.00024.18
8.3.10.0070.00024.66
8.3.00.0030.00626.16
8.2.180.0120.00925.92
8.2.170.0070.00719.09
8.2.160.0030.01022.96
8.2.150.0000.00725.66
8.2.140.0030.00624.66
8.2.130.0070.00026.16
8.2.120.0000.00821.01
8.2.110.0060.00322.31
8.2.100.0000.01117.91
8.2.90.0040.00417.91
8.2.80.0100.00017.97
8.2.70.0050.00317.63
8.2.60.0030.00517.80
8.2.50.0050.00318.07
8.2.40.0000.00819.88
8.2.30.0060.00318.05
8.2.20.0040.00418.11
8.2.10.0040.00421.07
8.2.00.0040.00419.16
8.1.280.0040.01125.92
8.1.270.0040.00423.99
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0000.00923.85
8.1.230.0040.00820.96
8.1.220.0040.00417.78
8.1.210.0080.00018.77
8.1.200.0030.00617.35
8.1.190.0040.00417.22
8.1.180.0000.00818.10
8.1.170.0030.00618.50
8.1.160.0040.00418.71
8.1.150.0000.00718.65
8.1.140.0040.00418.75
8.1.130.0030.00319.95
8.1.120.0000.00717.34
8.1.110.0040.00417.28
8.1.100.0070.00017.33
8.1.90.0000.00717.18
8.1.80.0050.00317.28
8.1.70.0000.00817.17
8.1.60.0030.00617.47
8.1.50.0050.00317.39
8.1.40.0080.00317.48
8.1.30.0030.00517.58
8.1.20.0000.01017.55
8.1.10.0080.00017.46
8.1.00.0050.00317.44
8.0.300.0000.00720.03
8.0.290.0070.00016.88
8.0.280.0000.00718.46
8.0.270.0070.00018.12
8.0.260.0030.00318.44
8.0.250.0030.00317.00
8.0.240.0030.00316.95
8.0.230.0030.00316.84
8.0.220.0000.00716.86
8.0.210.0000.00816.97
8.0.200.0060.00316.88
8.0.190.0040.00416.86
8.0.180.0040.00416.88
8.0.170.0090.00016.91
8.0.160.0040.00416.85
8.0.150.0000.00716.85
8.0.140.0000.00816.76
8.0.130.0050.00013.34
8.0.120.0040.00416.87
8.0.110.0030.00316.95
8.0.100.0040.00416.91
8.0.90.0040.00416.89
8.0.80.0070.01016.89
8.0.70.0040.00416.85
8.0.60.0050.00216.68
8.0.50.0000.00716.93
8.0.30.0110.00916.71
8.0.20.0080.01316.87
8.0.10.0090.00816.88
8.0.00.0140.00616.89
7.4.330.0000.00515.55
7.4.320.0000.00716.39
7.4.300.0000.00616.29
7.4.290.0030.00516.47
7.4.280.0040.00416.43
7.4.270.0040.00416.34
7.4.260.0000.00513.14
7.4.250.0040.00416.44
7.4.240.0070.00016.42
7.4.230.0000.00716.55
7.4.220.0020.00516.44
7.4.210.0070.00916.55
7.4.200.0000.00716.18
7.4.160.0130.00616.53
7.4.150.0080.00716.45
7.4.140.0070.01216.42
7.4.130.0060.01216.38
7.4.120.0070.01316.43
7.4.110.0110.00916.42
7.4.100.0060.01116.51
7.4.90.0100.00816.41
7.4.80.0070.01116.41
7.4.70.0080.00916.45
7.4.60.0070.01316.40
7.4.50.0100.00616.29
7.4.40.0110.01016.31
7.4.30.0090.00716.38
7.4.20.0090.00616.42
7.4.10.0060.01016.38
7.4.00.0070.01216.43
7.3.330.0050.00316.16
7.3.320.0030.00313.05
7.3.310.0000.00716.39
7.3.300.0070.00016.16
7.3.290.0110.00516.26
7.3.270.0050.01116.23
7.3.260.0050.01116.24
7.3.250.0050.01416.24
7.3.240.0100.00716.21
7.3.230.0100.01016.25
7.3.220.0080.00716.18
7.3.210.0080.00816.19
7.3.200.0110.00716.20
7.3.190.0060.01116.23
7.3.180.0060.01316.15
7.3.170.0080.01016.27
7.3.160.0080.01116.21
7.3.150.0080.00816.14
7.3.140.0090.00716.19
7.3.130.0090.00916.12
7.3.120.0050.01116.20
7.3.110.0090.00716.17
7.3.100.0060.01216.11
7.3.90.0100.00716.45
7.3.80.0110.00716.22
7.3.70.0070.01016.27
7.3.60.0090.00916.34
7.3.50.0090.00716.29
7.3.40.0040.01016.34
7.3.30.0030.01316.35
7.3.20.0240.00916.33
7.3.10.0280.00716.25
7.3.00.0100.01216.27

preferences:
37.03 ms | 400 KiB | 5 Q