3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'meu.arquivo.com.muitos.pontos.e.uma.extensao.ext'; $file = new SplFileInfo($string); printf("Extensão: %s" , $file->getExtension());

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.5.20.0080.00920.21
8.5.10.0120.00519.40
8.5.00.0120.00919.80
8.4.170.0140.00723.82
8.4.160.0160.01223.90
8.4.150.0030.00014.05
8.4.140.0120.00917.32
8.4.130.0130.00717.58
8.4.120.0120.00820.48
8.4.110.0110.01022.60
8.4.100.0120.00917.61
8.4.90.0110.01017.56
8.4.80.0050.00317.55
8.4.70.0140.00617.66
8.4.60.0080.00817.57
8.4.50.0120.00819.39
8.4.40.0160.00317.59
8.4.30.0160.00319.45
8.4.20.0070.01417.54
8.4.10.0040.00717.86
8.3.300.0130.00620.82
8.3.290.0070.01320.70
8.3.280.0080.01218.54
8.3.270.0130.00716.22
8.3.260.0140.00516.41
8.3.250.0120.00718.76
8.3.240.0120.00716.60
8.3.230.0100.00616.66
8.3.220.0150.00417.00
8.3.210.0100.00916.74
8.3.200.0130.00716.19
8.3.190.0040.00416.93
8.3.180.0080.00716.54
8.3.170.0090.00919.00
8.3.160.0120.00618.27
8.3.150.0040.01420.70
8.3.140.0120.00616.37
8.3.130.0080.00316.77
8.3.120.0060.00318.87
8.3.110.0120.00820.94
8.3.100.0040.00424.06
8.3.90.0030.00626.77
8.3.80.0060.00318.18
8.3.70.0040.01116.58
8.3.60.0070.00716.50
8.3.50.0130.00821.08
8.3.40.0120.00418.67
8.3.30.0190.00318.54
8.3.20.0070.00020.21
8.3.10.0030.00521.82
8.3.00.0030.00519.38
8.2.300.0110.00918.90
8.2.290.0050.00420.58
8.2.280.0050.00418.55
8.2.270.0070.00718.91
8.2.260.0060.01218.48
8.2.250.0060.00318.64
8.2.240.0060.00317.02
8.2.230.0040.00422.58
8.2.220.0050.00337.54
8.2.210.0050.00326.77
8.2.200.0090.00016.63
8.2.190.0170.00316.58
8.2.180.0100.01025.92
8.2.170.0140.00722.96
8.2.160.0120.00319.21
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0000.00720.52
8.2.120.0050.00226.35
8.2.110.0030.00621.00
8.2.100.0080.00418.03
8.2.90.0050.00319.04
8.2.80.0080.00018.04
8.2.70.0060.00317.38
8.2.60.0060.00317.80
8.2.50.0000.00818.10
8.2.40.0070.00420.59
8.2.30.0050.00319.07
8.2.20.0070.00017.88
8.2.10.0040.00418.16
8.2.00.0070.00018.22
8.1.340.0070.01219.90
8.1.330.0120.00716.55
8.1.320.0110.00819.86
8.1.310.0050.00316.65
8.1.300.0120.00318.59
8.1.290.0110.00030.84
8.1.280.0070.00725.92
8.1.270.0090.00023.99
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0100.00623.84
8.1.230.0070.00419.23
8.1.220.0060.00317.74
8.1.210.0060.00318.77
8.1.200.0070.00317.35
8.1.190.0000.00817.10
8.1.180.0050.00218.10
8.1.170.0050.00318.59
8.1.160.0070.00018.90
8.1.150.0000.00719.98
8.1.140.0000.00719.52
8.1.130.0000.00719.01
8.1.120.0090.00017.38
8.1.110.0070.00017.38
8.1.100.0050.00317.23
8.1.90.0000.00717.38
8.1.80.0030.00317.36
8.1.70.0000.00717.40
8.1.60.0080.00017.48
8.1.50.0000.00717.49
8.1.40.0030.00717.48
8.1.30.0030.00517.62
8.1.20.0070.00317.63
8.1.10.0000.00717.43
8.1.00.0040.00417.41
8.0.300.0040.00418.77
8.0.290.0070.00016.63
8.0.280.0080.00018.38
8.0.270.0000.00717.20
8.0.260.0030.00318.98
8.0.250.0070.00016.93
8.0.240.0030.00616.91
8.0.230.0040.00416.93
8.0.220.0070.00016.88
8.0.210.0000.00616.71
8.0.200.0000.00616.78
8.0.190.0040.00416.88
8.0.180.0000.00816.80
8.0.170.0000.00816.83
8.0.160.0080.00016.92
8.0.150.0040.00416.84
8.0.140.0000.00716.70
8.0.130.0030.00313.23
8.0.120.0030.00616.68
8.0.110.0000.00816.78
8.0.100.0080.00016.79
8.0.90.0040.00416.66
8.0.80.0070.00716.87
8.0.70.0040.00416.63
8.0.60.0040.00416.85
8.0.50.0030.00516.70
8.0.30.0070.01216.98
8.0.20.0110.00917.40
8.0.10.0000.00716.82
8.0.00.0120.00616.68
7.4.330.0020.00215.55
7.4.320.0000.00616.34
7.4.300.0030.00316.42
7.4.290.0030.00316.55
7.4.280.0030.00516.55
7.4.270.0000.00716.44
7.4.260.0070.00316.43
7.4.250.0030.00516.39
7.4.240.0030.00316.35
7.4.230.0030.00316.33
7.4.220.0180.00616.33
7.4.210.0000.01416.58
7.4.200.0000.00716.63
7.4.160.0100.00616.35
7.4.150.0070.01017.40
7.4.140.0150.01317.86
7.4.130.0140.00516.50
7.4.120.0110.01116.37
7.4.110.0030.01316.52
7.4.100.0100.00716.58
7.4.90.0070.01616.38
7.4.80.0060.01519.39
7.4.70.0030.01916.43
7.4.60.0060.00916.38
7.4.50.0040.00816.44
7.4.40.0140.00816.46
7.4.30.0090.01216.40
7.4.10.0130.00616.00
7.4.00.0080.00915.25
7.3.330.0050.00013.14
7.3.320.0030.00313.03
7.3.310.0000.00716.15
7.3.300.0060.00016.16
7.3.290.0080.00616.20
7.3.280.0080.01216.11
7.3.270.0100.00617.40
7.3.260.0090.01216.06
7.3.240.0090.01116.28
7.3.230.0180.00016.33
7.3.210.0040.01216.30
7.3.200.0070.01116.18
7.3.190.0060.01016.41
7.3.180.0030.01316.25
7.3.170.0130.00316.19
7.3.160.0030.01716.09
7.3.130.0060.00916.00
7.3.120.0070.01115.46
7.3.110.0050.01215.22
7.3.100.0090.00415.26
7.3.90.0060.00915.28
7.3.80.0040.01015.32
7.3.70.0000.01115.32
7.3.60.0050.01315.28
7.3.50.0060.01015.21
7.3.40.0020.00915.26
7.3.30.0070.00715.25
7.3.20.0050.01016.34
7.3.10.0100.00616.47
7.3.00.0060.00716.63
7.2.330.0110.00516.54
7.2.320.0100.00716.51
7.2.310.0060.01016.19
7.2.300.0100.00616.56
7.2.290.0060.01216.53
7.2.260.0100.01016.00
7.2.250.0110.00715.52
7.2.240.0070.01115.33
7.2.230.0120.00515.53
7.2.220.0100.00715.49
7.2.210.0090.00715.46
7.2.200.0060.01015.42
7.2.190.0050.01115.34
7.2.180.0080.00915.46
7.2.170.0070.00715.54
7.2.160.0040.01516.00
7.2.150.0090.00616.81
7.2.140.0120.00316.94
7.2.130.0070.01116.48
7.2.120.0060.00616.49
7.2.110.0000.01416.66
7.2.100.0040.01116.58
7.2.90.0030.01316.88
7.2.80.0070.01016.83
7.2.70.0050.00516.79
7.2.60.0060.00916.88
7.2.50.0060.00816.69
7.2.40.0070.00716.80
7.2.30.0000.01016.91
7.2.20.0070.00316.75
7.2.10.0030.01516.66
7.2.00.0060.00616.64
7.1.330.0070.00715.89
7.1.320.0110.00315.81
7.1.310.0070.00715.94
7.1.300.0060.00715.81
7.1.290.0030.00815.74
7.1.280.0040.00915.82
7.1.270.0070.00915.86
7.1.260.0060.00515.88
7.1.250.0000.01916.00
7.1.240.0070.00716.00
7.1.230.0080.00016.00
7.1.220.0040.01116.00
7.1.210.0130.00316.00
7.1.200.0050.00915.83
7.1.190.0040.00416.00
7.1.180.0030.00916.00
7.1.170.0090.00016.00
7.1.160.0000.01316.00
7.1.150.0060.00916.00
7.1.140.0000.01416.00
7.1.130.0060.00316.00
7.1.120.0090.00616.00
7.1.110.0080.00616.00
7.1.100.0110.00716.00
7.1.90.0070.00716.00
7.1.80.0030.00616.00
7.1.70.0050.00716.37
7.1.60.0050.00716.55
7.1.50.0000.01016.37
7.1.40.0010.00916.25
7.1.30.0080.00716.28
7.1.20.0090.00916.24
7.1.10.0040.00716.36
7.1.00.0020.00716.40
7.0.330.0050.00516.00
7.0.320.0030.00516.00
7.0.310.0100.00016.00
7.0.300.0030.01016.00
7.0.290.0070.00316.00
7.0.280.0130.00316.00
7.0.270.0130.00316.00
7.0.260.0030.01316.00
7.0.250.0070.00316.00
7.0.240.0070.01016.00
7.0.230.0060.00916.00
7.0.220.0030.01016.00
7.0.210.0000.01216.00
7.0.200.0050.00416.33
7.0.190.0020.00716.32
7.0.180.0060.00616.24
7.0.170.0050.00716.24
7.0.160.0080.00116.24
7.0.150.0040.00716.25
7.0.140.0050.00316.24
7.0.130.0030.00816.24
7.0.120.0050.00616.24
7.0.110.0040.00416.24
7.0.100.0030.00616.24
7.0.90.0040.00616.24
7.0.80.0050.01016.27
7.0.70.0070.00316.24
7.0.60.0050.00416.24
7.0.50.0020.01016.24
7.0.40.0020.00916.24
7.0.30.0050.00516.24
7.0.20.0080.00316.24
7.0.10.0070.00216.24
7.0.00.0050.00316.24
5.6.400.0100.00016.00
5.6.390.0030.01016.00
5.6.380.0150.00016.00
5.6.370.0080.00316.00
5.6.360.0030.01016.00
5.6.350.0070.00716.00
5.6.340.0060.01216.00
5.6.330.0020.01116.00
5.6.320.0040.00816.00
5.6.310.0070.00716.00
5.6.300.0000.01416.00
5.6.290.0060.00316.00
5.6.280.0070.00716.00
5.6.270.0100.00616.00
5.6.260.0030.00616.00
5.6.250.0060.00616.00
5.6.240.0080.00416.00
5.6.230.0000.01116.00
5.6.220.0000.01016.00
5.6.210.0070.01016.00
5.6.200.0060.01216.00
5.6.190.0090.00616.00
5.6.180.0040.01116.00
5.6.170.0090.00316.00
5.6.160.0100.00316.00
5.6.150.0030.00916.00
5.6.140.0030.01516.00
5.6.130.0070.00716.00
5.6.120.0040.01216.00
5.6.110.0070.01116.00
5.6.100.0040.00816.00
5.6.90.0030.00916.00
5.6.80.0030.00616.00
5.6.70.0030.00916.00
5.6.60.0000.00916.00
5.6.50.0060.00316.00
5.6.40.0070.00716.00
5.6.30.0150.00016.00
5.6.20.0100.00316.00
5.6.10.0070.00716.00
5.6.00.0100.00716.00

preferences:
31.77 ms | 403 KiB | 5 Q