3v4l.org

run code in 300+ PHP versions simultaneously
<?php <?php $test="HELLO WORLD"; echo ucwords($test); // it will print HELLO WORLD ?>

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.4.270.0130.06718.94
5.4.260.0170.04718.95
5.4.250.0100.06318.64
5.4.240.0070.05718.96
5.4.230.0200.06318.90
5.4.220.0070.06318.75
5.4.210.0030.08319.00
5.4.200.0270.05718.93
5.4.190.0130.05018.98
5.4.180.0100.05018.96
5.4.170.0100.05719.07
5.4.160.0030.08019.00
5.4.150.0200.05318.65
5.4.140.0070.06316.56
5.4.130.0200.05716.44
5.4.120.0130.06716.48
5.4.110.0130.04716.48
5.4.100.0130.06316.40
5.4.90.0170.05016.46
5.4.80.0130.06716.37
5.4.70.0130.06716.62
5.4.60.0100.06716.52
5.4.50.0170.04716.45
5.4.40.0200.05316.53
5.4.30.0130.06316.47
5.4.20.0100.06716.38
5.4.10.0070.06016.53
5.4.00.0100.04715.87
5.3.280.0130.05014.69
5.3.270.0130.05314.63
5.3.260.0230.05314.60
5.3.250.0170.05714.38
5.3.240.0130.05014.76
5.3.230.0100.05014.65
5.3.220.0130.05014.45
5.3.210.0130.07014.58
5.3.200.0030.06314.59
5.3.190.0170.05314.59
5.3.180.0130.06314.45
5.3.170.0030.07714.55
5.3.160.0130.05014.58
5.3.150.0370.06014.42
5.3.140.0130.07014.57
5.3.130.0100.07314.55
5.3.120.0130.05014.54
5.3.110.0100.06314.56
5.3.100.0030.05713.89
5.3.90.0200.06014.11
5.3.80.0030.05314.01
5.3.70.0130.06314.06
5.3.60.0130.05714.05
5.3.50.0130.06313.99
5.3.40.0030.05313.94
5.3.30.0100.06713.93
5.3.20.0100.05313.54
5.3.10.0070.06013.74
5.3.00.0070.06713.63
5.2.170.0070.05310.90
5.2.160.0030.05711.15
5.2.150.0070.05711.03
5.2.140.0100.04010.96
5.2.130.0100.03711.25
5.2.120.0100.04011.20
5.2.110.0100.05011.00
5.2.100.0100.05311.11
5.2.90.0200.04710.86
5.2.80.0000.05310.85
5.2.70.0100.05010.85
5.2.60.0100.05310.89
5.2.50.0130.05010.95
5.2.40.0000.04311.01
5.2.30.0030.04310.98
5.2.20.0070.04310.90
5.2.10.0070.05310.93
5.2.00.0100.05310.93
5.1.60.0030.0379.96
5.1.50.0000.04010.14
5.1.40.0070.04710.04
5.1.30.0070.03710.49
5.1.20.0070.04710.43
5.1.10.0070.05310.09
5.1.00.0000.05010.10
5.0.50.0070.0378.50
5.0.40.0000.0338.32
5.0.30.0030.0538.07
5.0.20.0070.0338.27
5.0.10.0030.0308.24
5.0.00.0070.0408.21
4.4.90.0030.0235.75
4.4.80.0030.0305.77
4.4.70.0130.0175.79
4.4.60.0070.0275.73
4.4.50.0000.0305.80
4.4.40.0000.0375.83
4.4.30.0030.0305.75
4.4.20.0000.0275.85
4.4.10.0030.0235.85
4.4.00.0030.0375.93
4.3.110.0070.0235.73
4.3.100.0100.0235.74
4.3.90.0100.0205.60
4.3.80.0000.0375.64
4.3.70.0030.0305.68
4.3.60.0030.0205.68
4.3.50.0000.0235.69
4.3.40.0000.0375.62
4.3.30.0030.0304.98
4.3.20.0030.0204.98
4.3.10.0000.0234.98
4.3.00.0130.0206.71

preferences:
142.99 ms | 1394 KiB | 7 Q