3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo trim(' AB C D',' '); ?>

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.0070.00718.31
8.3.50.0190.00318.13
8.3.40.0070.00718.59
8.3.30.0070.00718.60
8.3.20.0000.00820.09
8.3.10.0070.00021.73
8.3.00.0040.00423.50
8.2.180.0060.01218.41
8.2.170.0090.00622.96
8.2.160.0110.00419.31
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0030.00620.83
8.2.110.0060.00322.30
8.2.100.0110.00017.72
8.2.90.0050.00319.95
8.2.80.0080.00017.97
8.2.70.0050.00517.50
8.2.60.0040.00417.93
8.2.50.0040.00418.10
8.2.40.0040.00420.28
8.2.30.0020.00519.15
8.2.20.0040.00418.03
8.2.10.0050.00317.99
8.2.00.0040.00417.86
8.1.280.0070.01025.92
8.1.270.0000.00822.20
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0060.00323.97
8.1.230.0120.00020.98
8.1.220.0000.00917.74
8.1.210.0030.00618.77
8.1.200.0060.00316.88
8.1.190.0000.00817.11
8.1.180.0080.00018.10
8.1.170.0040.00418.66
8.1.160.0040.00418.71
8.1.150.0070.00020.45
8.1.140.0050.00219.08
8.1.130.0000.00718.75
8.1.120.0000.00817.29
8.1.110.0050.00317.14
8.1.100.0040.00417.28
8.1.90.0040.00417.31
8.1.80.0000.00817.36
8.1.70.0030.00317.38
8.1.60.0040.00417.50
8.1.50.0090.00017.43
8.1.40.0080.00817.34
8.1.30.0030.00517.45
8.1.20.0050.00217.55
8.1.10.0040.00417.33
8.1.00.0040.00417.29
8.0.300.0040.00421.96
8.0.290.0040.00416.63
8.0.280.0030.00318.38
8.0.270.0030.00317.18
8.0.260.0070.00016.74
8.0.250.0040.00416.95
8.0.240.0030.00316.86
8.0.230.0080.00016.73
8.0.220.0030.00616.59
8.0.210.0070.00316.79
8.0.200.0040.00416.80
8.0.190.0000.00816.78
8.0.180.0050.00316.71
8.0.170.0000.00716.68
8.0.160.0000.00716.82
8.0.150.0040.00416.64
8.0.140.0030.00516.60
8.0.130.0030.00313.17
8.0.120.0050.00316.77
8.0.110.0000.00716.66
8.0.100.0000.00716.64
8.0.90.0000.00716.59
8.0.80.0130.00716.73
8.0.70.0000.00716.62
8.0.60.0070.00016.74
8.0.50.0000.00816.66
8.0.30.0100.00916.97
8.0.20.0130.00617.40
8.0.10.0000.00716.69
8.0.00.0090.00916.58
7.4.330.0000.00415.55
7.4.320.0060.00016.46
7.4.300.0030.00316.46
7.4.290.0060.00016.33
7.4.280.0040.00416.29
7.4.270.0060.00016.27
7.4.260.0000.00716.36
7.4.250.0000.00716.33
7.4.240.0070.00016.35
7.4.230.0030.00616.27
7.4.220.0040.02216.46
7.4.210.0060.00916.45
7.4.200.0030.00516.36
7.4.160.0080.00716.29
7.4.150.0070.01417.40
7.4.140.0130.00517.86
7.4.130.0140.00316.29
7.4.120.0110.01016.33
7.4.110.0100.01016.44
7.4.100.0090.00616.33
7.4.90.0040.01416.12
7.4.80.0120.01119.39
7.4.70.0130.01016.22
7.4.60.0160.00016.27
7.4.50.0000.01816.04
7.4.40.0080.00816.34
7.4.30.0060.01216.40
7.4.00.0110.00714.84
7.3.330.0050.00013.01
7.3.320.0060.00012.88
7.3.310.0030.00316.05
7.3.300.0000.00616.14
7.3.290.0090.00816.15
7.3.280.0090.00916.14
7.3.270.0160.00017.40
7.3.260.0080.01016.39
7.3.250.0080.00816.17
7.3.240.0080.00916.34
7.3.230.0040.01316.26
7.3.210.0120.00616.29
7.3.200.0100.00716.42
7.3.190.0100.00716.36
7.3.180.0150.00616.23
7.3.170.0080.00816.31
7.3.160.0090.00616.42
7.2.330.0030.01316.36
7.2.320.0170.00016.41
7.2.310.0090.01316.45
7.2.300.0130.00716.70
7.2.290.0030.01216.25
7.2.80.0070.00716.35
7.2.60.0070.00316.72
7.2.00.0030.01319.04
7.1.200.0060.00315.73
7.1.120.0060.01218.59
7.1.110.0000.01917.89
7.1.100.0060.01318.05
7.1.90.0070.00717.66
7.1.80.0070.01017.96
7.1.70.0060.01216.83
7.1.60.0220.00734.93
7.1.50.0200.01334.78
7.1.40.0200.00734.21
7.1.30.0130.01334.35
7.1.20.0150.01134.32
7.1.10.0050.00816.38
7.1.00.0060.00916.50

preferences:
69.37 ms | 400 KiB | 5 Q