3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo ltrim(rtrim(" fdsf sdf ")); echo trim(" fdsf sdf ");

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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.3.00.0030.01016.49
7.2.130.0070.00416.88
7.2.120.0040.00816.78
7.2.110.0030.00616.56
7.2.100.0100.00316.77
7.2.90.0030.00916.57
7.2.80.0000.01416.72
7.2.70.0040.00816.67
7.2.60.0020.00716.75
7.2.50.0030.01016.45
7.2.40.0040.01116.75
7.2.30.0030.01016.34
7.2.20.0030.00916.58
7.2.10.0040.00816.80
7.2.00.0060.00818.13
7.1.250.0000.01015.80
7.1.240.0050.00515.57
7.1.230.0040.00715.67
7.1.220.0060.00315.66
7.1.210.0090.00315.29
7.1.200.0000.01115.43
7.1.190.0020.00515.71
7.1.180.0090.00615.60
7.1.170.0110.00315.27
7.1.160.0070.00315.36
7.1.150.0090.00015.51
7.1.140.0000.01015.47
7.1.130.0000.00915.56
7.1.120.0030.01315.19
7.1.110.0120.00015.63
7.1.100.0050.00516.94
7.1.90.0000.01215.70
7.1.80.0030.00915.51
7.1.70.0080.00516.29
7.1.60.0050.01317.38
7.1.50.0060.01116.13
7.1.40.0040.00715.46
7.1.30.0060.00615.58
7.1.20.0040.00415.64
7.1.10.0100.00315.56
7.1.00.0030.02318.84
7.0.330.0070.00015.32
7.0.320.0040.00715.17
7.0.310.0130.00015.24
7.0.300.0050.00215.25
7.0.290.0100.00014.98
7.0.280.0130.00315.09
7.0.270.0080.00315.07
7.0.260.0070.00715.18
7.0.250.0070.00315.28
7.0.240.0070.00315.38
7.0.230.0080.00315.02
7.0.220.0050.00515.36
7.0.210.0040.00715.05
7.0.200.0120.00615.01
7.0.190.0080.00315.28
7.0.180.0070.00315.11
7.0.170.0000.01215.41
7.0.160.0000.01015.07
7.0.150.0000.00815.42
7.0.140.0070.03518.58
7.0.130.0030.01015.30
7.0.120.0000.00715.20
7.0.110.0090.00015.25
7.0.100.0060.00314.95
7.0.90.0070.00714.92
7.0.80.0030.01015.14
7.0.70.0070.00715.10
7.0.60.0030.03117.46
7.0.50.0100.03816.46
7.0.40.0050.04816.52
7.0.30.0170.04516.54
7.0.20.0140.04716.71
7.0.10.0120.05016.79
7.0.00.0030.03716.60
5.6.380.0050.00514.12
5.6.370.0040.00713.88
5.6.360.0070.00313.89
5.6.350.0040.00414.08
5.6.340.0060.00813.95
5.6.330.0040.00714.24
5.6.320.0030.00713.96
5.6.310.0060.00614.05
5.6.300.0080.00313.76
5.6.290.0030.00714.00
5.6.280.0030.04017.52
5.6.270.0080.00413.90
5.6.260.0070.00713.83
5.6.250.0110.00313.93
5.6.240.0070.00313.81
5.6.230.0070.00414.09
5.6.220.0000.01713.80
5.6.210.0050.04317.21
5.6.200.0100.02716.11
5.6.190.0060.02317.45
5.6.180.0150.04317.10
5.6.170.0080.02617.35
5.6.160.0050.02817.12
5.6.150.0030.04016.06
5.6.140.0000.03016.12
5.6.130.0070.04615.96
5.6.120.0050.04617.33
5.6.110.0080.04717.51
5.6.100.0080.04717.59
5.6.90.0030.02317.32
5.6.80.0070.04017.14
5.6.70.0120.03717.13
5.6.60.0050.00514.01
5.6.50.0030.01013.86
5.6.40.0050.00313.84
5.6.30.0060.00614.23
5.6.20.0110.00414.36
5.6.10.0030.01013.98
5.6.00.0100.00314.17
5.5.380.0000.01011.18
5.5.370.0080.00311.18
5.5.360.0080.00411.18
5.5.350.0020.03815.80
5.5.340.0110.04014.54
5.5.330.0100.03015.71
5.5.320.0140.02415.68
5.5.310.0120.03115.74
5.5.300.0030.02714.59
5.5.290.0020.04614.54
5.5.280.0020.04515.97
5.5.270.0050.04715.90
5.5.260.0070.04515.97
5.5.250.0050.04115.98
5.5.240.0050.02215.72
5.5.230.0040.00711.18
5.5.220.0070.00011.18
5.5.210.0070.00411.18
5.5.200.0080.00011.18
5.5.190.0000.00611.18
5.5.180.0030.01011.18
5.5.170.0060.00611.18
5.5.160.0030.00311.18
5.5.150.0000.00711.18
5.5.140.0000.00811.18
5.5.130.0050.00311.18
5.5.120.0030.00611.18
5.5.110.0030.00311.18
5.5.100.0100.00011.18
5.5.90.0000.00611.18
5.5.80.0030.00611.18
5.5.70.0070.00711.18
5.5.60.0060.00311.18
5.5.50.0000.00611.18
5.5.40.0000.01211.18
5.5.30.0120.00011.18
5.5.20.0060.00311.18
5.5.10.0060.00611.18
5.5.00.0040.00711.18
5.4.450.0320.03015.32
5.4.440.0400.03615.15
5.4.430.0420.02915.38
5.4.420.0430.02815.32
5.4.410.0420.02815.07
5.4.400.0570.03414.84
5.4.390.0550.03314.93
5.4.380.0120.03214.88
5.4.370.0080.03014.88
5.4.360.0150.02314.94
5.4.350.0040.02311.57
5.4.340.0050.02011.57
5.4.330.0060.00311.18
5.4.320.0090.01811.81
5.4.310.0040.02111.81
5.4.300.0050.01911.81
5.4.290.0040.02111.81
5.4.280.0020.02311.76
5.4.270.0010.02411.76
5.4.260.0050.02211.76
5.4.250.0050.02211.76
5.4.240.0070.02815.05
5.4.230.0120.02515.04
5.4.220.0030.03514.94
5.4.210.0050.03814.96
5.4.200.0100.03315.08
5.4.190.0060.02814.97
5.4.180.0080.02615.09
5.4.170.0030.03115.02
5.4.160.0080.03815.09
5.4.150.0050.03014.93
5.4.140.0030.03613.82
5.4.130.0040.03013.80
5.4.120.0140.02813.83
5.4.110.0060.02613.82
5.4.100.0030.03113.83
5.4.90.0070.02713.70
5.4.80.0050.03113.77
5.4.70.0150.01813.83
5.4.60.0070.02513.75
5.4.50.0080.02613.74
5.4.40.0030.02813.85
5.4.30.0030.03713.78
5.4.20.0050.02713.79
5.4.10.0060.03313.78
5.4.00.0030.02813.51
5.3.290.0050.02011.99
5.3.280.0020.03012.88
5.3.270.0020.03112.90
5.3.260.0050.03912.74
5.3.250.0030.03112.82
5.3.240.0100.02512.96
5.3.230.0020.03312.89
5.3.220.0050.04012.88
5.3.210.0030.03112.72
5.3.200.0090.02512.88
5.3.190.0080.03312.88
5.3.180.0090.03212.81
5.3.170.0030.02912.83
5.3.160.0020.03412.91
5.3.150.0050.03012.87
5.3.140.0090.02912.78
5.3.130.0020.03212.90
5.3.120.0110.02812.79
5.3.110.0030.02812.79
5.3.100.0030.02812.61
5.3.90.0050.02812.59
5.3.80.0060.03012.56
5.3.70.0000.02912.56
5.3.60.0050.02812.66
5.3.50.0050.02612.50
5.3.40.0050.04112.48
5.3.30.0100.03212.56
5.3.20.0040.03012.44
5.3.10.0040.03812.29
5.3.00.0020.04212.41
5.2.170.0010.02511.11
5.2.160.0060.02811.11
5.2.150.0050.03011.15
5.2.140.0070.02311.20
5.2.130.0030.02511.02
5.2.120.0070.02211.14
5.2.110.0030.02811.14
5.2.100.0050.02211.14
5.2.90.0050.02111.12
5.2.80.0070.02911.10
5.2.70.0070.02911.14
5.2.60.0030.03011.11
5.2.50.0030.02711.05
5.2.40.0060.01811.13
5.2.30.0050.02011.08
5.2.20.0050.02911.14
5.2.10.0070.02711.10
5.2.00.0000.03410.98
5.1.60.0050.02010.53
5.1.50.0050.01710.60
5.1.40.0050.02210.59
5.1.30.0050.02310.67
5.1.20.0050.02710.80
5.1.10.0080.01810.69
5.1.00.0030.02110.60
5.0.50.0020.0159.82
5.0.40.0030.0169.75
5.0.30.0030.0329.79
5.0.20.0000.0179.63
5.0.10.0030.0159.64
5.0.00.0020.0309.69
4.4.90.0020.0158.97
4.4.80.0040.0148.97
4.4.70.0040.0138.97
4.4.60.0030.0138.97
4.4.50.0020.0178.97
4.4.40.0010.0188.97
4.4.30.0020.0138.97
4.4.20.0000.0158.97
4.4.10.0000.0188.97
4.4.00.0030.0208.97
4.3.110.0030.0169.01
4.3.100.0030.0139.01
4.3.90.0030.0129.01
4.3.80.0030.0179.01
4.3.70.0030.0139.01
4.3.60.0020.0129.01
4.3.50.0040.0109.01
4.3.40.0020.0199.01
4.3.30.0020.0149.01
4.3.20.0020.0129.01
4.3.10.0000.0179.01
4.3.00.0070.0128.94