3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "? this is a ? test ?"; echo trim($str, '?');

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.140.0000.00716.45
8.3.130.0040.00418.33
8.3.120.0030.00618.91
8.3.110.0150.00020.94
8.3.100.0060.00316.43
8.3.90.0030.00626.77
8.3.80.0060.00316.50
8.3.70.0100.00618.31
8.3.60.0090.00918.43
8.3.50.0160.00320.96
8.3.40.0150.00418.87
8.3.30.0070.01418.45
8.3.20.0040.00418.48
8.3.10.0000.00820.03
8.3.00.0070.00020.70
8.2.250.0070.00716.67
8.2.240.0030.00516.88
8.2.230.0050.00322.58
8.2.220.0120.00624.06
8.2.210.0040.00426.77
8.2.200.0040.00416.38
8.2.190.0170.00316.63
8.2.180.0040.01516.60
8.2.170.0090.00918.89
8.2.160.0070.00722.96
8.2.150.0050.00325.66
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0040.00420.66
8.2.110.0080.00822.26
8.2.100.0040.00817.91
8.2.90.0030.00519.23
8.2.80.0000.00817.97
8.2.70.0030.00617.50
8.2.60.0130.00117.71
8.2.50.0050.00717.40
8.2.40.0110.00218.94
8.2.30.0090.00318.89
8.2.20.0050.00617.54
8.2.10.0080.00317.67
8.2.00.0080.00517.69
8.1.300.0060.00318.17
8.1.290.0060.00330.84
8.1.280.0110.00725.92
8.1.270.0030.00621.83
8.1.260.0110.00726.35
8.1.250.0000.00728.09
8.1.240.0100.00023.81
8.1.230.0090.00322.73
8.1.220.0070.00017.74
8.1.210.0050.00318.77
8.1.200.0050.00517.22
8.1.190.0060.00717.05
8.1.180.0100.00417.48
8.1.170.0070.00518.78
8.1.160.0090.00418.06
8.1.150.0090.00318.01
8.1.140.0080.00518.27
8.1.130.0100.00217.23
8.1.120.0020.01017.20
8.1.110.0080.00417.17
8.1.100.0090.00317.12
8.1.90.0100.00217.33
8.1.80.0080.00317.21
8.1.70.0090.00317.17
8.1.60.0040.01017.43
8.1.50.0100.00217.29
8.1.40.0020.01117.29
8.1.30.0110.00317.30
8.1.20.0090.00417.55
8.1.10.0090.00317.29
8.1.00.0090.00517.16
8.0.300.0040.00418.77
8.0.290.0050.00316.63
8.0.280.0080.00417.46
8.0.270.0060.00516.85
8.0.260.0070.00416.66
8.0.250.0050.00516.75
8.0.240.0090.00316.73
8.0.230.0100.00216.69
8.0.220.0080.00416.61
8.0.210.0110.00016.62
8.0.200.0060.00716.68
8.0.190.0080.00416.64
8.0.180.0080.00416.62
8.0.170.0050.00716.68
8.0.160.0060.00516.69
8.0.150.0070.00516.63
8.0.140.0070.00516.67
8.0.130.0080.00414.92
8.0.120.0050.00716.68
8.0.110.0070.00416.73
8.0.100.0070.00516.64
8.0.90.0090.00516.66
8.0.80.0070.01016.69
8.0.70.0080.00516.69
8.0.60.0100.00216.67
8.0.50.0060.00616.61
8.0.30.0080.00716.95
8.0.20.0100.00717.18
8.0.10.0070.00416.70
8.0.00.0130.01016.64
7.4.330.0060.00215.80
7.4.320.0060.00616.43
7.4.300.0080.00316.55
7.4.290.0040.00716.45
7.4.280.0120.00016.44
7.4.270.0110.00016.47
7.4.260.0050.00516.40
7.4.250.0100.00116.41
7.4.240.0040.00716.44
7.4.230.0040.00716.43
7.4.220.0110.00516.41
7.4.210.0000.01616.46
7.4.200.0060.00516.51
7.4.190.0070.00716.52
7.4.180.0070.00716.52
7.4.160.0090.00716.38
7.4.150.0120.00716.96
7.4.140.0110.00817.41
7.4.130.0080.00916.46
7.4.120.0060.01216.45
7.4.110.0100.00616.51
7.4.100.0090.01016.51
7.4.90.0110.00516.42
7.4.80.0110.00517.96
7.4.70.0090.00916.42
7.4.60.0130.00516.51
7.4.50.0090.00716.36
7.4.40.0120.00316.37
7.4.30.0060.01116.45
7.4.20.0120.00316.52
7.4.10.0120.00216.52
7.4.00.0090.00715.26
7.3.330.0030.00814.82
7.3.320.0050.00514.75
7.3.310.0090.00216.32
7.3.300.0090.00216.32
7.3.290.0060.00816.20
7.3.280.0070.00816.25
7.3.270.0070.01016.96
7.3.260.0080.00716.46
7.3.250.0090.00916.27
7.3.240.0050.01116.36
7.3.230.0120.00516.45
7.3.220.0160.00016.52
7.3.210.0120.00716.32
7.3.200.0080.00916.33
7.3.190.0060.01116.38
7.3.180.0080.00716.42
7.3.170.0080.00816.39
7.3.160.0120.01516.40
7.3.150.0150.00016.52
7.3.140.0110.00516.52
7.3.130.0120.00516.52
7.3.120.0030.01215.60
7.3.110.0110.00515.55
7.3.100.0110.00515.61
7.3.90.0070.00615.55
7.3.80.0060.00715.53
7.3.70.0090.00815.56
7.3.60.0050.01015.41
7.3.50.0100.00615.59
7.3.40.0100.00615.52
7.3.30.0070.00915.45
7.3.20.0100.00517.17
7.3.10.0120.00316.82
7.3.00.0120.00316.85
7.2.340.0030.01016.52
7.2.330.0100.00716.37
7.2.320.0090.00816.42
7.2.310.0110.00816.44
7.2.300.0090.00916.45
7.2.290.0070.00916.40
7.2.280.0100.00516.52
7.2.270.0110.00416.52
7.2.260.0090.00616.52
7.2.250.0140.00315.68
7.2.240.0120.00415.64
7.2.230.0060.01015.68
7.2.220.0070.00915.65
7.2.210.0100.00515.64
7.2.200.0090.00515.70
7.2.190.0060.00915.71
7.2.180.0070.00815.60
7.2.170.0110.00615.54
7.2.160.0120.00316.52
7.2.150.0130.00417.81
7.2.140.0140.00317.80
7.2.130.0130.00217.36
7.2.120.0070.00917.36
7.2.110.0100.00717.23
7.2.100.0070.00717.28
7.2.90.0080.00517.30
7.2.80.0100.00317.20
7.2.70.0080.00617.17
7.2.60.0110.00417.12
7.2.50.0090.00717.47
7.2.40.0120.00317.53
7.2.30.0040.00917.39
7.2.20.0060.01017.37
7.2.10.0120.00317.42
7.2.00.0080.00518.04
7.1.330.0080.00616.36
7.1.320.0100.00216.38
7.1.310.0120.00316.30
7.1.300.0080.00816.31
7.1.290.0050.00716.12
7.1.280.0060.00816.19
7.1.270.0030.01016.36
7.1.260.0100.00416.22
7.1.250.0000.01516.29
7.1.240.0110.00316.29
7.1.230.0070.00516.16
7.1.220.0120.00316.41
7.1.210.0100.00616.39
7.1.200.0080.00516.16
7.1.190.0100.00316.16
7.1.180.0070.00716.38
7.1.170.0050.00816.20
7.1.160.0070.00916.15
7.1.150.0090.00516.29
7.1.140.0120.00316.27
7.1.130.0090.00616.15
7.1.120.0110.00316.29
7.1.110.0110.00216.30
7.1.100.0060.00716.86
7.1.90.0060.00616.09
7.1.80.0110.00316.21
7.1.70.0080.00516.57
7.1.60.0100.00817.35
7.1.50.0090.00516.33
7.1.40.0090.00516.34
7.1.30.0070.00716.39
7.1.20.0070.00516.32
7.1.10.0110.00416.37
7.1.00.0070.03018.26
7.0.330.0130.00215.80
7.0.320.0090.00616.03
7.0.310.0070.00615.82
7.0.300.0080.00515.85
7.0.290.0090.00215.92
7.0.280.0040.01015.81
7.0.270.0090.00515.91
7.0.260.0090.00515.92
7.0.250.0090.00515.87
7.0.240.0090.00615.94
7.0.230.0120.00216.14
7.0.220.0080.00615.84
7.0.210.0110.00415.88
7.0.200.0110.00516.10
7.0.190.0110.00316.10
7.0.180.0090.00615.90
7.0.170.0090.00616.19
7.0.160.0070.00715.87
7.0.150.0100.00315.95
7.0.140.0120.00215.92
7.0.130.0070.00715.99
7.0.120.0100.00316.04
7.0.110.0100.00316.03
7.0.100.0090.00516.05
7.0.90.0080.00916.00
7.0.80.0060.00715.91
7.0.70.0110.00316.00
7.0.60.1660.01717.22
7.0.50.0210.02117.36
7.0.40.0200.02016.80
7.0.30.0180.02316.87
7.0.20.0200.02716.68
7.0.10.0250.02016.75
7.0.00.0200.02216.73
5.6.400.0140.00016.52
5.6.390.0140.00016.52
5.6.380.0100.00215.48
5.6.370.0130.00315.46
5.6.360.0110.00115.48
5.6.350.0050.01015.34
5.6.340.0060.00715.38
5.6.330.0040.00715.36
5.6.320.0080.00715.47
5.6.310.0080.00515.46
5.6.300.0040.00915.26
5.6.290.0050.00515.42
5.6.280.0030.02917.13
5.6.270.0050.00615.23
5.6.260.0090.00515.28
5.6.250.0050.00915.34
5.6.240.0100.00615.34
5.6.230.0110.00215.22
5.6.220.0070.00515.24
5.6.210.0060.02317.08
5.6.200.0090.02317.13
5.6.190.0130.02417.20
5.6.180.0180.02317.24
5.6.170.0210.02117.21
5.6.160.0220.02217.10
5.6.150.0150.02317.13
5.6.140.0190.02217.21
5.6.130.0200.02117.27
5.6.120.0060.02717.36
5.6.110.0060.02517.21
5.6.100.0140.02017.30
5.6.90.0160.02817.23
5.6.80.0170.02317.07
5.6.70.0160.02317.04
5.6.60.0150.02416.90
5.6.50.0180.02417.05
5.6.40.0230.02316.97
5.6.30.0160.02516.97
5.6.20.0150.02117.06
5.6.10.0180.02516.98
5.6.00.0210.02117.00
5.5.380.0080.00413.72
5.5.370.0080.00513.73
5.5.360.0050.00513.65
5.5.350.0140.02715.96
5.5.340.0070.02616.09
5.5.330.0190.02016.11
5.5.320.0130.02416.13
5.5.310.0190.02216.23
5.5.300.0210.01916.19
5.5.290.0190.02216.11
5.5.280.0090.02116.16
5.5.270.0070.02416.08
5.5.260.0190.02216.08
5.5.250.0190.02415.99
5.5.240.0200.01915.82
5.5.230.0150.03315.84
5.5.220.0180.02115.84
5.5.210.0180.02615.87
5.5.200.0170.03015.88
5.5.190.0220.01815.91
5.5.180.0120.02515.81
5.5.170.0060.00413.51
5.5.160.0170.02315.89
5.5.150.0210.02015.93
5.5.140.0200.02115.76
5.5.130.0200.01915.69
5.5.120.0190.01715.86
5.5.110.0200.02015.77
5.5.100.0180.02015.75
5.5.90.0220.01815.86
5.5.80.0190.02515.87
5.5.70.0170.02315.72
5.5.60.0180.02115.78
5.5.50.0160.02215.88
5.5.40.0200.01815.74
5.5.30.0170.02015.88
5.5.20.0190.02115.85
5.5.10.0180.02015.74
5.5.00.0170.02315.88

preferences:
66.24 ms | 403 KiB | 5 Q