3v4l.org

run code in 300+ PHP versions simultaneously
<?php $p='/dir/dir2/dir3/'; $p = rtrim($p, '/'); echo $p;

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.110.0030.00617.26
8.1.100.0000.00817.43
8.1.90.0020.00517.27
8.1.80.0000.00717.39
8.1.70.0000.00717.30
8.1.60.0050.00317.49
8.1.50.0030.00717.33
8.1.40.0040.00417.44
8.1.30.0000.00817.52
8.1.20.0060.00317.40
8.1.10.0080.00017.46
8.1.00.0020.00517.44
8.0.240.0030.00316.93
8.0.230.0070.00016.93
8.0.220.0000.00616.80
8.0.210.0000.00716.72
8.0.200.0000.00816.77
8.0.190.0070.00016.85
8.0.180.0040.00416.90
8.0.170.0080.00016.74
8.0.160.0050.00716.83
8.0.150.0000.00716.76
8.0.140.0030.00516.81
8.0.130.0000.00613.24
8.0.120.0000.00816.81
8.0.110.0040.00416.90
8.0.100.0040.00416.63
8.0.90.0000.00716.78
8.0.80.0050.01316.81
8.0.70.0030.00516.61
8.0.60.0050.00316.88
8.0.50.0040.00416.68
8.0.30.0060.01217.07
8.0.20.0070.01116.91
8.0.10.0000.00716.93
8.0.00.0130.00316.52
7.4.300.0030.00316.38
7.4.290.0070.00016.34
7.4.280.0080.00016.52
7.4.270.0030.00316.50
7.4.260.0000.00513.14
7.4.250.0000.00716.51
7.4.240.0000.00716.42
7.4.230.0070.00016.52
7.4.220.0030.00316.50
7.4.210.0110.00516.52
7.4.200.0040.00416.40
7.4.130.0100.00816.36
7.4.120.0070.01016.55
7.4.110.0090.00916.35
7.4.100.0100.01016.36
7.4.90.0080.01116.45
7.4.80.0130.00619.39
7.4.70.0090.00616.42
7.4.60.0100.00616.63
7.4.50.0090.00616.34
7.4.40.0080.01016.43
7.4.30.0040.01416.34
7.4.20.0100.00816.46
7.4.10.0100.01016.34
7.4.00.0080.01016.42
7.3.330.0030.00316.02
7.3.320.0000.00512.95
7.3.310.0000.00716.01
7.3.300.0030.00316.18
7.3.290.0070.00916.17
7.3.280.0060.00916.17
7.3.260.0060.01216.41
7.3.240.0100.00716.23
7.3.230.0130.00316.21
7.3.210.0100.01316.47
7.3.200.0090.00616.15
7.3.190.0120.00316.07
7.3.180.0060.01016.16
7.3.170.0090.01216.34
7.3.160.0110.00716.35
7.3.150.0090.00716.24
7.3.140.0090.01016.21
7.3.130.0110.00716.19
7.3.120.0120.00616.17
7.3.110.0080.00916.32
7.3.100.0090.01216.23
7.3.90.0110.00916.25
7.3.80.0090.01016.18
7.3.70.0050.01316.17
7.3.60.0140.00516.25
7.3.50.0110.00616.18
7.3.40.0070.01116.20
7.3.30.0090.00916.16
7.3.20.0080.01316.26
7.3.10.0180.00716.20
7.3.00.0060.01216.26
7.2.330.0090.01016.71
7.2.320.0140.00716.46
7.2.310.0080.00816.40
7.2.300.0120.00416.63
7.2.290.0070.01016.44
7.2.280.0110.00816.58
7.2.270.0090.01116.40
7.2.260.0070.01316.46
7.2.250.0080.01116.46
7.2.240.0120.01016.56
7.2.230.0080.01116.55
7.2.220.0110.00816.56
7.2.210.0110.00716.32
7.2.200.0080.01016.42
7.2.190.0100.00816.42
7.2.180.0100.00916.49
7.2.170.0130.00716.44
7.2.160.0090.00916.50
7.2.150.0080.01316.55
7.2.140.0100.00916.52
7.2.130.0090.01016.50
7.2.120.0190.00416.44
7.2.110.0090.01216.51
7.2.100.0110.00816.54
7.2.90.0120.00816.55
7.2.80.0130.00916.40
7.2.70.0100.01216.60
7.2.60.0140.00716.44
7.2.50.0070.01416.41
7.2.40.0090.01016.43
7.2.30.0060.01316.57
7.2.20.0120.00716.44
7.2.10.0100.00916.38
7.2.00.0090.01116.48

preferences:
59.49 ms | 410 KiB | 6 Q