3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ ["PROPERTIES" => ["1122"], "QUANTITY" => 11], ["PROPERTIES" => ["1123"], "QUANTITY" => 12] ]; function getQuantityById(id) { return "TEST"; } echo getQuantityById("1122");

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.0030.06018.80
5.4.260.0200.06719.00
5.4.250.0130.07019.03
5.4.240.0200.04718.80
5.4.230.0100.07718.97
5.4.220.0030.05719.00
5.4.210.0100.05318.90
5.4.200.0130.04718.84
5.4.190.0130.05018.64
5.4.180.0070.08018.96
5.4.170.0070.06718.67
5.4.160.0270.06019.09
5.4.150.0130.05018.73
5.4.140.0130.06716.34
5.4.130.0070.06316.44
5.4.120.0230.04016.36
5.4.110.0100.07716.55
5.4.100.0000.06016.63
5.4.90.0070.05316.62
5.4.80.0030.05716.32
5.4.70.0030.07316.51
5.4.60.0070.05316.47
5.4.50.0130.04016.63
5.4.40.0200.05316.55
5.4.30.0030.05316.38
5.4.20.0200.04016.46
5.4.10.0030.06016.39
5.4.00.0030.07315.70
5.3.280.0170.04314.59
5.3.270.0130.05014.52
5.3.260.0030.07714.30
5.3.250.0200.05314.47
5.3.240.0070.07314.70
5.3.230.0070.06014.62
5.3.220.0130.05314.57
5.3.210.0130.06714.40
5.3.200.0100.05014.66
5.3.190.0030.07314.27
5.3.180.0170.04714.61
5.3.170.0030.05314.57
5.3.160.0070.05014.52
5.3.150.0100.05014.34
5.3.140.0100.05314.32
5.3.130.0030.07014.60
5.3.120.0070.05714.57
5.3.110.0230.04314.55
5.3.100.0130.04314.03
5.3.90.0230.05713.87
5.3.80.0130.05713.86
5.3.70.0030.07013.91
5.3.60.0000.05714.00
5.3.50.0070.05013.99
5.3.40.0100.06713.95
5.3.30.0030.05713.70
5.3.20.0070.05013.56
5.3.10.0100.04713.59
5.3.00.0100.04713.66
5.2.170.0030.05011.14
5.2.160.0130.05011.25
5.2.150.0130.04711.14
5.2.140.0070.06011.05
5.2.130.0100.03311.09
5.2.120.0030.04710.98
5.2.110.0070.04011.11
5.2.100.0100.04011.25
5.2.90.0000.05311.19
5.2.80.0070.04311.01
5.2.70.0030.04311.18
5.2.60.0100.05710.96
5.2.50.0100.04011.02
5.2.40.0000.05710.94
5.2.30.0000.05010.73
5.2.20.0170.04310.72
5.2.10.0030.05711.07
5.2.00.0030.04010.70
5.1.60.0070.03710.04
5.1.50.0200.0309.95
5.1.40.0030.03310.06
5.1.30.0100.05010.23
5.1.20.0030.03710.43
5.1.10.0100.03710.26
5.1.00.0000.04010.00
5.0.50.0070.0338.47
5.0.40.0000.0308.34
5.0.30.0070.0508.45
5.0.20.0070.0338.43
5.0.10.0100.0338.16
5.0.00.0030.0538.07
4.4.90.0030.0237.11
4.4.80.0030.0277.45
4.4.70.0030.0307.45
4.4.60.0030.0237.45
4.4.50.0070.0177.45
4.4.40.0000.0337.45
4.4.30.0100.0207.45
4.4.20.0030.0207.45
4.4.10.0070.0237.45
4.4.00.0000.0377.45
4.3.110.0030.0307.45
4.3.100.0030.0207.45
4.3.90.0070.0237.45
4.3.80.0030.0337.45
4.3.70.0030.0207.45
4.3.60.0030.0207.45
4.3.50.0030.0237.45
4.3.40.0100.0307.45
4.3.30.0000.0237.45
4.3.20.0100.0237.45
4.3.10.0000.0237.45
4.3.00.0030.0207.29

preferences:
142.15 ms | 1386 KiB | 7 Q