3v4l.org

run code in 300+ PHP versions simultaneously
<?php function trimo( string $string, string $additionalTrimChars = '' ): string { return trim(trim($string), $additionalTrimChars); } var_dump(trimo(' = hasen'), '=');

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.3.60.0040.01116.50
8.3.50.0150.00016.47
8.3.40.0110.00318.75
8.3.30.0060.00918.36
8.3.20.0000.00820.20
8.3.10.0040.00423.48
8.3.00.0000.00819.38
8.2.180.0090.00616.50
8.2.170.0040.01122.96
8.2.160.0070.01020.27
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00019.24
8.2.120.0040.00426.35
8.2.110.0060.00322.27
8.2.100.0110.00017.67
8.2.90.0040.00418.92
8.2.80.0050.00317.97
8.2.70.0070.00417.63
8.2.60.0040.00417.67
8.2.50.0090.00018.10
8.2.40.0070.00020.45
8.2.30.0040.00420.97
8.2.20.0000.00717.82
8.2.10.0040.00417.82
8.2.00.0040.00417.93
8.1.280.0120.00325.92
8.1.270.0080.00022.14
8.1.260.0080.00026.35
8.1.250.0050.00228.09
8.1.240.0090.00023.95
8.1.230.0040.00717.55
8.1.220.0070.00017.74
8.1.210.0030.00718.77
8.1.200.0000.00917.35
8.1.190.0030.00617.10
8.1.180.0030.00618.10
8.1.170.0040.00418.53
8.1.160.0000.00718.88
8.1.150.0000.00720.54
8.1.140.0040.00419.49
8.1.130.0000.00718.77
8.1.120.0000.00817.32
8.1.110.0040.00417.31
8.1.100.0000.00717.38
8.1.90.0070.00417.27
8.1.80.0040.00417.38
8.1.70.0000.00717.34
8.1.60.0080.00017.53
8.1.50.0030.00517.47
8.1.40.0040.00417.35
8.1.30.0040.00417.57
8.1.20.0030.00717.46
8.1.10.0000.00817.41
8.1.00.0000.00717.33
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0030.00318.39
8.0.270.0000.00717.15
8.0.260.0030.00316.63
8.0.250.0000.00616.84
8.0.240.0000.00716.93
8.0.230.0000.00716.89
8.0.220.0030.00316.82
8.0.210.0000.00716.78
8.0.200.0020.00516.78
8.0.190.0000.01016.80
8.0.180.0040.00416.75
8.0.170.0030.00316.88
8.0.160.0030.00516.84
8.0.150.0040.00416.80
8.0.140.0060.00316.69
8.0.130.0030.00313.24
8.0.120.0050.00316.79
8.0.110.0060.00316.84
8.0.100.0000.00716.79
8.0.90.0080.00016.70
8.0.80.0040.01216.88
8.0.70.0040.00416.89
8.0.60.0020.00516.90
8.0.50.0030.00316.86
8.0.30.0080.01016.92
8.0.20.0060.01417.40
8.0.10.0040.00416.84
8.0.00.0140.00716.68
7.4.330.0060.00015.55
7.4.320.0030.00316.28
7.4.300.0060.00016.46
7.4.290.0000.01116.54
7.4.280.0000.00816.54
7.4.270.0030.00316.43
7.4.260.0000.00716.45
7.4.250.0000.00816.52
7.4.240.0000.00716.55
7.4.230.0000.00716.35
7.4.220.0140.00716.43
7.4.210.0090.00716.40
7.4.200.0000.00716.45
7.4.160.0100.00516.42
7.4.150.0130.00317.40
7.4.140.0130.00917.86
7.4.130.0070.01116.59
7.4.120.0100.00916.32
7.3.330.0080.00013.30
7.3.320.0000.00513.17
7.3.310.0050.00216.21
7.3.300.0060.00016.32
7.3.290.0040.00416.32
7.3.280.0080.00916.29
7.3.270.0060.01217.40
7.3.260.0060.01016.52
7.3.250.0150.00516.42
7.3.240.0090.00816.38
7.1.70.0090.00317.03

preferences:
42.95 ms | 400 KiB | 5 Q