3v4l.org

run code in 300+ PHP versions simultaneously
<?php $file_name="abc.txt"; $file_extension = end(explode('.', $file_name));

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.1.70.0070.00017.28
8.1.60.0070.00017.54
8.1.50.0030.00617.46
8.1.40.0000.00817.32
8.1.30.0040.00417.51
8.1.20.0040.00417.50
8.1.10.0000.00717.49
8.1.00.0000.00817.45
8.0.200.0060.00016.92
8.0.190.0000.00816.85
8.0.180.0000.00716.91
8.0.170.0030.00316.93
8.0.160.0000.00716.77
8.0.150.0030.00316.85
8.0.140.0000.00816.75
8.0.130.0000.00513.37
8.0.120.0080.00016.88
8.0.110.0080.00016.80
8.0.100.0000.00716.67
8.0.90.0070.00016.82
8.0.80.0110.00816.86
8.0.70.0030.00516.84
8.0.60.0030.00516.73
8.0.50.0040.00416.94
8.0.30.0120.00817.08
8.0.20.0110.01117.40
8.0.10.0070.00016.97
8.0.00.0100.00716.63
7.4.300.0030.00316.55
7.4.290.0040.00416.44
7.4.280.0000.00816.38
7.4.270.0030.00616.53
7.4.260.0040.00416.39
7.4.250.0030.00516.47
7.4.240.0000.00716.52
7.4.230.0000.00716.50
7.4.220.0090.01116.54
7.4.210.0100.01016.55
7.4.200.0000.00716.59
7.4.160.0090.00716.40
7.4.150.0140.00417.40
7.4.140.0100.00817.86
7.4.130.0080.01116.45
7.4.120.0100.01016.40
7.4.110.0060.01216.59
7.4.100.0100.00716.42
7.4.90.0140.00316.54
7.4.80.0080.00819.39
7.4.70.0030.01316.52
7.4.60.0150.00616.31
7.4.50.0060.00616.36
7.4.40.0070.01116.60
7.4.30.0090.00916.46
7.4.00.0110.00514.94
7.3.330.0000.00613.01
7.3.320.0020.00213.05
7.3.310.0030.00316.24
7.3.300.0000.00716.23
7.3.290.0100.00716.27
7.3.280.0100.00816.27
7.3.270.0160.00017.40
7.3.260.0100.00916.35
7.3.250.0130.00716.18
7.3.240.0110.00616.30
7.3.230.0090.00916.36
7.3.210.0180.00016.22
7.3.200.0100.00716.27
7.3.190.0110.00616.30
7.3.180.0100.00716.14
7.3.170.0040.01716.44
7.3.160.0060.00916.41
7.3.120.0110.00714.93
7.3.110.0000.01914.43
7.3.100.0090.00314.81
7.3.90.0000.01314.79
7.3.80.0070.00714.76
7.3.70.0060.00914.81
7.3.60.0130.00014.82
7.3.50.0080.00514.82
7.3.40.0000.00914.69
7.3.30.0040.00814.81
7.3.20.0070.00416.74
7.3.10.0050.00816.49
7.3.00.0000.01116.52
7.2.330.0100.00716.41
7.2.320.0090.01216.32
7.2.310.0130.00316.31
7.2.300.0090.01216.46
7.2.290.0000.01716.69
7.2.250.0070.01014.92
7.2.240.0040.01814.83
7.2.230.0070.01114.88
7.2.220.0040.01415.05
7.2.210.0150.00315.11
7.2.200.0060.00914.91
7.2.190.0030.01015.02
7.2.180.0070.00714.50
7.2.170.0000.01514.79
7.2.130.0080.00316.60
7.2.120.0000.01116.61
7.2.110.0040.00816.73
7.2.100.0120.00316.88
7.2.90.0030.00716.84
7.2.80.0000.01016.91
7.2.70.0030.01016.88
7.2.60.0060.00616.75
7.2.50.0060.00616.70
7.2.40.0110.00016.67
7.2.30.0060.00616.88
7.2.20.0030.01016.91
7.2.10.0040.00816.54
7.2.00.0040.00917.88
7.1.330.0030.01015.73
7.1.320.0070.00715.88
7.1.310.0030.01015.64
7.1.300.0000.00915.75
7.1.290.0060.00915.45
7.1.280.0060.00915.88
7.1.270.0040.00715.82
7.1.260.0000.01415.80
7.1.250.0070.00015.78
7.1.200.0140.00715.70
7.1.70.0060.00617.03
7.1.60.0030.01316.98
7.1.50.0080.00817.05
7.1.40.0140.00016.88
7.1.30.0030.00716.88
7.1.20.0070.00716.88
7.1.10.0080.00016.88
7.1.00.0060.00316.88
7.0.200.0030.00816.88
7.0.190.0030.00716.88
7.0.180.0090.00316.88
7.0.170.0030.00516.88
7.0.160.0000.00916.88
7.0.150.0030.01016.88
7.0.140.0080.00816.88
7.0.130.0000.00816.88
7.0.120.0080.00016.88
7.0.110.0000.00816.88
7.0.100.0000.00816.88
7.0.90.0090.00016.88
7.0.80.0050.00516.88
7.0.70.0150.00316.88
7.0.60.0060.00616.88
7.0.50.0040.00816.88
7.0.40.0060.00616.88
7.0.30.0000.01316.88
7.0.20.0040.00916.88
7.0.10.0080.00816.88
7.0.00.0060.00916.88

preferences:
10.91 ms | 406 KiB | 5 Q