3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = '//a'; echo trim($s, '/');

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.4.120.0040.00420.36
8.4.110.0080.00222.45
8.4.100.0140.00717.81
8.4.90.0140.00718.68
8.4.80.0090.01117.73
8.4.70.0150.00717.83
8.4.60.0130.00620.41
8.4.50.0120.00719.28
8.4.40.0100.01017.91
8.4.30.0130.00620.65
8.4.20.0130.00617.69
8.4.10.0080.00022.02
8.3.250.0110.00818.88
8.3.240.0130.00616.51
8.3.230.0160.00316.68
8.3.220.0090.00716.84
8.3.210.0080.01016.61
8.3.200.0060.00416.45
8.3.190.0090.00716.98
8.3.180.0090.00916.38
8.3.170.0150.00018.80
8.3.160.0140.00316.22
8.3.150.0040.01520.69
8.3.140.0050.00316.56
8.3.130.0190.00016.41
8.3.120.0110.00418.76
8.3.110.0040.00416.29
8.3.100.0000.00916.50
8.3.90.0030.00626.77
8.3.80.0060.00316.50
8.3.70.0110.00716.63
8.3.60.0130.00318.30
8.3.50.0060.00919.97
8.3.40.0140.00020.33
8.3.30.0150.00018.45
8.3.20.0070.00024.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.290.0090.00621.98
8.2.280.0110.01018.32
8.2.270.0150.00017.02
8.2.260.0030.00518.38
8.2.250.0040.00416.40
8.2.240.0080.00816.55
8.2.230.0030.00620.94
8.2.220.0030.00624.06
8.2.210.0140.00026.77
8.2.200.0000.00916.50
8.2.190.0090.00616.58
8.2.180.0040.01125.92
8.2.170.0070.01122.96
8.2.160.0030.01022.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00026.16
8.2.110.0060.00322.29
8.2.100.0110.00017.78
8.2.90.0000.00817.75
8.2.80.0030.00617.97
8.2.70.0040.00417.50
8.2.60.0050.00317.63
8.2.50.0000.00817.98
8.2.40.0000.00919.95
8.2.30.0070.00017.92
8.2.20.0040.00419.29
8.2.10.0100.00017.99
8.2.00.0030.00619.07
8.1.330.0150.00423.64
8.1.320.0070.01216.06
8.1.310.0030.00516.57
8.1.300.0070.01016.28
8.1.290.0030.00630.84
8.1.280.0000.01525.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00622.42
8.1.230.0000.01118.84
8.1.220.0030.00517.74
8.1.210.0000.00820.97
8.1.200.0060.00317.11
8.1.190.0000.00817.22
8.1.180.0030.00518.10
8.1.170.0000.00717.62
8.1.160.0000.00820.71
8.1.150.0030.00618.59
8.1.140.0000.00817.42
8.1.130.0070.00019.04
8.1.120.0000.00717.32
8.1.110.0000.00817.27
8.1.100.0130.00317.20
8.1.90.0090.00617.17
8.1.80.0090.00717.33
8.1.70.0120.00317.33
8.1.60.0130.00417.32
8.1.50.0130.00417.26
8.1.40.0070.01117.41
8.1.30.0150.00317.43
8.1.20.0130.00417.51
8.1.10.0120.00617.49
8.1.00.0150.00417.39
8.0.300.0050.00319.65
8.0.290.0000.00716.63
8.0.280.0030.00318.36
8.0.270.0050.00316.68
8.0.260.0060.00018.43
8.0.250.0070.00016.95
8.0.240.0030.00316.91
8.0.230.0000.00716.74
8.0.220.0070.00716.77
8.0.210.0080.00816.78
8.0.200.0090.00716.79
8.0.190.0070.00716.78
8.0.180.0110.00416.68
8.0.170.0100.00316.77
8.0.160.0070.00716.66
8.0.150.0080.00816.71
8.0.140.0120.00216.68
8.0.130.0090.00516.75
8.0.120.0070.00716.74
8.0.110.0140.00016.73
8.0.100.0070.00716.58
8.0.90.0130.00316.78
8.0.80.0120.00316.66
8.0.70.0050.00916.76
8.0.60.0140.00016.53
8.0.50.0080.00716.66
8.0.30.0120.00016.56
8.0.20.0000.00916.71
8.0.10.0140.00016.83
7.4.330.0020.00215.55
7.4.320.0030.00316.42
7.4.300.0150.00016.34
7.4.290.0090.00316.19
7.4.280.0120.00216.27
7.4.270.0100.00516.47
7.4.260.0150.00016.31
7.4.250.0080.00816.46
7.4.240.0100.00316.38
7.4.230.0040.00415.89
7.4.220.0040.00415.95
7.4.210.0090.00016.13
7.4.200.0030.00616.13
7.4.190.0080.00016.15
7.4.180.0000.00815.74
7.4.160.0050.00316.13
7.4.150.0000.00915.90
7.4.140.0050.00516.30
7.4.130.0070.00415.91
7.4.120.0080.00216.13
7.4.110.0020.00715.97
7.4.100.0000.00916.19
7.4.90.0030.00615.81
7.4.80.0050.00515.78
7.4.70.0000.01016.20
7.4.60.0070.00316.23
7.4.50.0030.00616.24
7.4.40.0080.00316.03
7.4.30.0090.00216.02
7.4.20.0120.00015.94
7.4.10.0050.00516.09
7.4.00.0100.00016.29

preferences:
27.84 ms | 403 KiB | 5 Q