3v4l.org

run code in 300+ PHP versions simultaneously
<?php function abc( trim($in) ){ return $in; } abc(' test ');

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)
5.6.90.0100.08021.10
5.6.80.0030.04320.54
5.5.250.0070.03720.79
5.5.240.0100.07320.04
5.4.410.0130.06318.89
5.4.400.0100.06718.80
5.4.390.0070.06018.62
5.4.380.0100.05718.51
5.4.370.0130.05018.47
5.4.360.0070.05718.89
5.4.350.0270.04018.62
5.4.340.0070.05718.57
5.4.320.0200.04718.60
5.4.310.0100.05718.84
5.4.300.0100.05318.63
5.4.290.0130.05318.84
5.4.280.0130.06018.56
5.4.270.0100.05318.56
5.4.260.0130.06018.50
5.4.250.0070.05718.59
5.4.240.0200.06318.79
5.4.230.0100.05718.43
5.4.220.0270.04018.54
5.4.210.0070.05718.59
5.4.200.0030.05716.51
5.4.190.0070.05718.82
5.4.180.0100.05318.73
5.4.170.0100.06318.55
5.4.160.0130.05018.64
5.4.150.0030.06018.57
5.4.140.0130.04716.43
5.4.130.0070.06016.42
5.4.120.0100.05016.18
5.4.110.0100.04716.19
5.4.100.0170.04716.23
5.4.90.0070.06316.24
5.4.80.0170.04316.28
5.4.70.0100.05316.39
5.4.60.0100.05016.29
5.4.50.0070.05316.40
5.4.40.0200.05716.23
5.4.30.0200.06316.24
5.4.20.0170.06716.38
5.4.10.0130.05016.21
5.4.00.0170.04315.66
5.3.290.0170.05314.64
5.3.280.0100.05314.64
5.3.270.0100.06014.79
5.3.260.0170.06014.60
5.3.250.0130.06314.79
5.3.240.0200.06014.77
5.3.230.0170.05314.60
5.3.220.0170.04714.70
5.3.210.0030.06314.62
5.3.200.0170.05014.56
5.3.190.0170.06314.78
5.3.180.0100.05314.80
5.3.170.0200.05314.73
5.3.160.0170.07014.62
5.3.150.0070.05714.61
5.3.140.0030.05714.59
5.3.130.0100.05714.55
5.3.120.0200.06314.54
5.3.110.0170.06714.55
5.3.100.0170.04714.08
5.3.90.0070.05714.16
5.3.80.0100.05014.04
5.3.70.0130.05714.07
5.3.60.0170.04714.18
5.3.50.0100.05313.93
5.3.40.0100.06314.00
5.3.30.0070.05314.07
5.3.20.0070.06013.76
5.3.10.0030.05713.75
5.3.00.0100.05013.84
5.2.170.0130.03711.13
5.2.160.0170.03311.27
5.2.150.0130.03711.16
5.2.140.0100.04311.18
5.2.130.0000.05011.20
5.2.120.0230.02711.13
5.2.110.0130.03711.21
5.2.100.0070.04311.23
5.2.90.0170.03311.31
5.2.80.0070.04311.20
5.2.70.0030.04711.18
5.2.60.0030.04711.10
5.2.50.0030.04711.06
5.2.40.0100.03711.04
5.2.30.0130.03711.09
5.2.20.0130.05010.96
5.2.10.0100.05310.93
5.2.00.0070.04010.76
5.1.60.0070.0379.98
5.1.50.0100.03010.03
5.1.40.0100.0339.98
5.1.30.0070.04010.44
5.1.20.0100.03710.36
5.1.10.0100.03310.21
5.1.00.0070.03710.05
5.0.50.0000.0338.57
5.0.40.0130.0208.58
5.0.30.0000.0478.41
5.0.20.0070.0278.39
5.0.10.0170.0278.24
5.0.00.0070.0478.14
4.4.90.0030.0235.88
4.4.80.0000.0235.89
4.4.70.0000.0275.88
4.4.60.0000.0275.89
4.4.50.0030.0235.93
4.4.40.0100.0305.88
4.4.30.0030.0235.91
4.4.20.0070.0205.94
4.4.10.0000.0275.95
4.4.00.0000.0375.94
4.3.110.0030.0235.95
4.3.100.0070.0205.94
4.3.90.0030.0205.89
4.3.80.0030.0335.80
4.3.70.0100.0235.80
4.3.60.0070.0175.84
4.3.50.0030.0305.79
4.3.40.0000.0375.75
4.3.30.0030.0234.67
4.3.20.0030.0234.63
4.3.10.0030.0274.49
4.3.00.0230.01315.75

preferences:
154.29 ms | 959 KiB | 7 Q