3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '{ senrows: [ { no: "1", type: "Door Contact", zone: "1", name: "zone1", attr: "Burglar", cond: "", battery: "", tamp: "", bypass: "No" }, { no: "2", type: "Door Contact", zone: "2", name: "zone2", attr: "Burglar", cond: "", battery: "", tamp: "", bypass: "No" }, { no: "3", type: "Door Contact", zone: "3", name: "zone3", attr: "Burglar", cond: "", battery: "", tamp: "", bypass: "No" }, { no: "4", type: "Door Contact", zone: "4", name: "zone4", attr: "Burglar", cond: "", battery: "Low", tamp: "", bypass: "No" }, { no: "5", type: "Door Contact", zone: "5", name: "zone5", attr: "Burglar", cond: "", battery: "", tamp: "", bypass: "No" }, { no: "6", type: "Door Contact", zone: "6", name: "zone6", attr: "Burglar", cond: "", battery: "", tamp: "", bypass: "No" }, { no: "7", type: "Door Contact", zone: "7", name: "zone7", attr: "Burglar", cond: "", battery: "", tamp: "", bypass: "No" }, { no: "8", type: "Door Contact", zone: "8", name: "zone8", attr: "Burglar", cond: "", battery: "", tamp: "", bypass: "No" }, { no: "9", type: "Door Contact", zone: "9", name: "zone9", attr: "Burglar", cond: "", battery: "", tamp: "", bypass: "No" }, { no: "10", type: "IR Sensor", zone: "10", name: "zone10", attr: "Burglar", cond: "", battery: "Low", tamp: "", bypass: "No" }, { no: "11", type: "Remote Keypad", zone: "11", name: "zone11", attr: "", cond: "", battery: "", tamp: "", bypass: "No" } ] }' ; echo $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.60.0180.00316.38
8.3.50.0210.00018.09
8.3.40.0060.00918.54
8.3.30.0100.01018.45
8.3.20.0030.00618.90
8.3.10.0070.00021.73
8.3.00.0040.00419.07
8.2.180.0100.01016.38
8.2.170.0150.00622.96
8.2.160.0100.00320.53
8.2.150.0000.00725.66
8.2.140.0040.00424.66
8.2.130.0070.00021.00
8.2.120.0000.00726.35
8.2.110.0030.00619.21
8.2.100.0060.00617.72
8.2.90.0050.00319.05
8.2.80.0000.00817.97
8.2.70.0030.00617.38
8.2.60.0050.00218.04
8.2.50.0080.00018.10
8.2.40.0000.00720.59
8.2.30.0040.00419.17
8.2.20.0050.00218.03
8.2.10.0080.00017.92
8.2.00.0000.00717.70
8.1.280.0140.00425.92
8.1.270.0080.00022.14
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0060.00323.82
8.1.230.0090.00317.76
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0050.00317.10
8.1.180.0040.00418.10
8.1.170.0080.00018.75
8.1.160.0000.00818.81
8.1.150.0040.00421.98
8.1.140.0000.00719.60
8.1.130.0000.00717.58
8.1.120.0000.00717.32
8.1.110.0080.00017.44
8.1.100.0040.00417.39
8.1.90.0000.00817.41
8.1.80.0050.00317.39
8.1.70.0000.00717.25
8.1.60.0000.00717.53
8.1.50.0040.00417.41
8.1.40.0030.00617.42
8.1.30.0000.00817.54
8.1.20.0000.00817.57
8.1.10.0030.00617.43
8.1.00.0000.00717.46
8.0.300.0060.00318.77
8.0.290.0040.00416.58
8.0.280.0040.00418.38
8.0.270.0000.00717.20
8.0.260.0040.00417.14
8.0.250.0030.00316.98
8.0.240.0030.00316.93
8.0.230.0030.00316.86
8.0.220.0030.00616.80
8.0.210.0030.00316.70
8.0.200.0080.00016.89
8.0.190.0040.00416.76
8.0.180.0070.00016.89
8.0.170.0030.00516.82
8.0.160.0050.00316.89
8.0.150.0030.00316.82
8.0.140.0060.00616.68
8.0.130.0000.00613.20
8.0.120.0040.00416.73
8.0.110.0040.00416.69
8.0.100.0050.00316.66
8.0.90.0070.00016.84
8.0.80.0110.00816.76
8.0.70.0040.00416.83
8.0.60.0000.00716.86
8.0.50.0040.00416.59
8.0.30.0050.01216.98
8.0.20.0100.00717.40
8.0.10.0070.00016.93
8.0.00.0140.00716.84
7.4.330.0000.00615.55
7.4.320.0000.00616.43
7.4.300.0000.00616.42
7.4.290.0000.00716.56
7.4.280.0000.00816.46
7.4.270.0070.00016.44
7.4.260.0030.00316.42
7.4.250.0000.00716.53
7.4.240.0000.00716.54
7.4.230.0030.00316.41
7.4.220.0140.00416.27
7.4.210.0120.00316.55
7.4.200.0070.00016.32
7.4.160.0050.01316.46
7.4.150.0040.01217.40
7.4.140.0100.00617.86
7.4.130.0090.00916.52
7.4.120.0090.00816.39
7.4.110.0070.01016.43
7.4.100.0160.00316.58
7.4.90.0110.00516.46
7.4.80.0120.00619.39
7.4.70.0100.00616.25
7.4.60.0060.01216.39
7.4.50.0070.00716.30
7.4.40.0060.01116.52
7.4.30.0120.00416.32
7.4.00.0060.00914.79
7.3.330.0000.00713.08
7.3.320.0030.00313.09
7.3.310.0070.00016.18
7.3.300.0030.00316.06
7.3.290.0070.00716.19
7.3.280.0100.00616.24
7.3.270.0100.01017.40
7.3.260.0140.00316.21
7.3.250.0090.00816.31
7.3.240.0100.00816.38
7.3.230.0140.00316.39
7.3.210.0100.00616.27
7.3.200.0060.01116.36
7.3.190.0130.00316.42
7.3.180.0060.01316.43
7.3.170.0110.00416.37
7.3.160.0140.00316.38
7.2.330.0120.00916.43
7.2.320.0070.01116.39
7.2.310.0070.01616.33
7.2.300.0150.00416.61
7.2.290.0040.01116.30
7.2.60.0000.01316.70
7.2.50.0070.00716.86
7.2.00.0060.00919.33
7.1.200.0100.00315.73
7.1.70.0000.00716.74
7.1.60.0000.01117.16
7.1.00.0030.07722.33
7.0.200.0440.00714.54
7.0.130.0170.06022.13
7.0.120.0070.06022.05
7.0.110.0100.06022.03
7.0.100.0130.06322.01
7.0.90.0200.05022.03
7.0.80.0070.06022.11
7.0.70.0030.06022.06
7.0.60.0070.05722.07
7.0.50.0100.06722.21
7.0.40.0200.04722.05
7.0.30.0130.05322.05
7.0.20.0100.07022.07
7.0.10.0100.05722.06
7.0.00.0170.05322.03
5.6.280.0200.05321.04
5.6.270.0070.06320.84
5.6.260.0070.06021.05
5.6.250.0130.05320.79
5.6.240.0070.06020.94
5.6.230.0100.05721.05
5.6.220.0130.05021.07
5.6.210.0070.06020.96
5.6.200.0100.06021.00
5.6.190.0130.05720.82
5.6.180.0130.05320.87
5.6.170.0100.06020.97
5.6.160.0070.05720.98
5.6.150.0130.05021.00
5.6.140.0130.05020.92
5.6.130.0130.05020.93
5.6.120.0130.06720.79
5.6.110.0100.05721.00
5.6.100.0000.06320.73
5.6.90.0130.05020.90
5.6.80.0030.05720.41
5.6.70.0200.06020.41
5.6.60.0130.05320.30
5.6.50.0130.05020.39
5.6.40.0030.05720.28
5.6.30.0070.06020.38
5.6.20.0100.05720.27
5.6.10.0170.07020.27
5.6.00.0200.05020.30

preferences:
59.17 ms | 400 KiB | 5 Q