3v4l.org

run code in 300+ PHP versions simultaneously
<?php path = 'www.example.com/public_html/index.php'; $file_name = strrchr($path, "/"); echo $file_name; // "index.php"

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)
5.4.290.0120.04812.49
5.4.280.0140.04912.39
5.4.270.0080.04612.39
5.4.260.0110.05212.39
5.4.250.0110.05012.39
5.4.240.0110.04712.39
5.4.230.0120.04612.38
5.4.220.0100.04912.38
5.4.210.0070.04912.38
5.4.200.0090.04912.38
5.4.190.0120.04412.38
5.4.180.0120.04812.38
5.4.170.0100.04712.38
5.4.160.0100.04512.38
5.4.150.0050.05612.38
5.4.140.0120.04812.07
5.4.130.0090.04012.05
5.4.120.0090.03612.01
5.4.110.0090.03612.01
5.4.100.0070.03812.01
5.4.90.0080.03812.01
5.4.80.0090.03812.01
5.4.70.0090.04212.01
5.4.60.0120.04512.01
5.4.50.0090.04712.01
5.4.40.0070.04112.00
5.4.30.0070.04311.99
5.4.20.0100.04311.99
5.4.10.0090.04111.99
5.4.00.0090.04011.48
5.3.280.0100.03812.71
5.3.270.0090.04312.72
5.3.260.0080.04212.72
5.3.250.0070.04512.72
5.3.240.0100.03912.72
5.3.230.0070.04312.71
5.3.220.0050.04312.68
5.3.210.0110.03812.68
5.3.200.0100.04512.68
5.3.190.0090.03912.68
5.3.180.0090.04612.67
5.3.170.0100.03812.67
5.3.160.0070.04712.67
5.3.150.0060.04112.67
5.3.140.0070.03812.66
5.3.130.0070.04512.66
5.3.120.0090.04812.65
5.3.110.0100.03912.66
5.3.100.0060.04212.12
5.3.90.0090.03912.08
5.3.80.0070.04312.07
5.3.70.0090.03712.07
5.3.60.0070.04212.06
5.3.50.0100.04312.00
5.3.40.0080.04412.00
5.3.30.0090.04311.95
5.3.20.0100.04211.73
5.3.10.0070.05111.70
5.3.00.0080.04711.68
5.2.170.0070.0389.18
5.2.160.0070.0349.18
5.2.150.0110.0389.18
5.2.140.0090.0499.18
5.2.130.0080.0439.14
5.2.120.0070.0439.14
5.2.110.0070.0419.15
5.2.100.0070.0439.14
5.2.90.0070.0549.14
5.2.80.0060.0419.14
5.2.70.0060.0379.14
5.2.60.0080.0469.09
5.2.50.0100.0389.06
5.2.40.0070.0419.03
5.2.30.0070.0409.01
5.2.20.0120.0459.01
5.2.10.0140.0638.93
5.2.00.0090.0408.78
5.1.60.0070.0368.06
5.1.50.0050.0378.06
5.1.40.0120.0358.05
5.1.30.0070.0378.40
5.1.20.0050.0348.42
5.1.10.0070.0298.14
5.1.00.0070.0328.14
5.0.50.0050.0236.63
5.0.40.0070.0216.48
5.0.30.0040.0366.29
5.0.20.0050.0256.26
5.0.10.0040.0256.24
5.0.00.0040.0366.23
4.4.90.0030.0184.78
4.4.80.0040.0164.75
4.4.70.0020.0194.76
4.4.60.0020.0194.76
4.4.50.0040.0174.77
4.4.40.0040.0294.71
4.4.30.0030.0164.76
4.4.20.0040.0154.84
4.4.10.0030.0194.85
4.4.00.0020.0304.76
4.3.110.0050.0194.67
4.3.100.0050.0194.67
4.3.90.0040.0194.64
4.3.80.0070.0274.58
4.3.70.0040.0254.63
4.3.60.0040.0194.62
4.3.50.0060.0214.63
4.3.40.0040.0314.54
4.3.30.0040.0203.28
4.3.20.0040.0203.26
4.3.10.0020.0183.21
4.3.00.0030.0206.43

preferences:
141.24 ms | 1394 KiB | 7 Q