3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = '<?xml version="1.0" encoding="UTF-8"?> <response response_code="0"> <initial_orders initial_order_total_price="2.3958"> <initial_order article_group_name="Conjunto de prueba 1"> <initial_order_lines> <initial_order_line article_cn6="123456" article_description="Artículo de prueba 1" article_pvl="1" article_initial_order_units="1" article_discount="1"/> <initial_order_line article_cn6="123457" article_description="Artículo de prueba 2" article_pvl="1" article_initial_order_units="1" article_discount="1"/> </initial_order_lines> </initial_order> </initial_orders> </response>'; $bar = simplexml_load_string($foo); $bax = json_encode($bar); $baz = json_decode($bax, true); print_r(count($baz['initial_orders']['initial_order']));

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.0200.00018.81
8.3.50.0040.01116.62
8.3.40.0130.00318.98
8.3.30.0070.00718.83
8.3.20.0070.00022.10
8.3.10.0040.00422.16
8.3.00.0050.00319.81
8.2.180.0070.00716.60
8.2.170.0130.00622.96
8.2.160.0080.00619.39
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0080.00022.46
8.2.120.0080.00026.35
8.2.110.0100.00020.73
8.2.100.0100.00317.91
8.2.90.0080.00019.34
8.2.80.0050.00317.97
8.2.70.0080.00017.88
8.2.60.0040.00418.18
8.2.50.0000.00818.18
8.2.40.0040.00420.71
8.2.30.0000.00819.61
8.2.20.0000.00718.29
8.2.10.0000.00818.32
8.2.00.0000.00718.22
8.1.280.0060.01025.92
8.1.270.0040.00424.09
8.1.260.0040.00426.35
8.1.250.0030.00628.09
8.1.240.0170.00021.96
8.1.230.0000.01122.95
8.1.220.0000.00817.92
8.1.210.0040.00418.77
8.1.200.0000.00917.48
8.1.190.0000.00917.48
8.1.180.0000.00718.10
8.1.170.0030.00518.79
8.1.160.0000.00719.00
8.1.150.0040.00419.08
8.1.140.0030.00519.80
8.1.130.0040.00419.05
8.1.120.0040.00417.73
8.1.110.0040.00417.63
8.1.100.0040.00417.74
8.1.90.0070.00017.70
8.1.80.0050.00317.54
8.1.70.0000.00717.77
8.1.60.0000.00717.68
8.1.50.0030.00517.81
8.1.40.0050.00317.75
8.1.30.0080.00017.83
8.1.20.0000.00817.79
8.1.10.0040.00417.62
8.1.00.0000.00717.64
8.0.300.0070.00020.20
8.0.290.0080.00016.88
8.0.280.0040.00418.62
8.0.270.0040.00417.40
8.0.260.0030.00319.11
8.0.250.0030.00317.12
8.0.240.0000.00917.17
8.0.230.0020.00517.13
8.0.220.0040.00417.11
8.0.210.0040.00417.07
8.0.200.0070.00417.14
8.0.190.0070.00317.21
8.0.180.0030.00317.08
8.0.170.0070.00017.18
8.0.160.0040.00417.05
8.0.150.0040.00417.04
8.0.140.0030.00516.98
8.0.130.0040.00413.51
8.0.120.0040.00416.96
8.0.110.0040.00416.94
8.0.100.0000.00917.00
8.0.90.0040.00416.98
8.0.80.0090.01217.13
8.0.70.0060.00317.05
8.0.60.0050.00216.98
8.0.50.0070.00017.13
8.0.30.0110.00817.41
8.0.20.0080.01017.41
8.0.10.0050.00217.25
8.0.00.0030.01716.89
7.4.330.0000.00515.55
7.4.320.0000.00716.64
7.4.300.0070.00016.77
7.4.290.0000.00716.72
7.4.280.0040.00416.79
7.4.270.0080.00016.66
7.4.260.0030.00316.72
7.4.250.0000.00716.85
7.4.240.0040.00416.72
7.4.230.0030.00316.71
7.4.220.0100.00716.82
7.4.210.0100.00916.78
7.4.200.0000.00716.73
7.4.160.0080.01016.57
7.4.150.0070.01017.40
7.4.140.0080.01417.86
7.4.130.0130.00716.80
7.4.120.0120.00616.70
7.4.110.0120.01216.64
7.4.100.0060.01316.68
7.4.90.0090.00916.80
7.4.80.0160.00719.39
7.4.70.0090.01316.55
7.4.60.0110.00616.68
7.4.50.0000.01416.74
7.4.40.0070.00716.52
7.4.30.0100.01316.75
7.4.00.0050.01115.03
7.3.330.0000.00613.34
7.3.320.0050.00013.35
7.3.310.0000.00616.29
7.3.300.0070.00016.45
7.3.290.0070.00016.39
7.3.280.0090.01016.47
7.3.270.0100.00717.40
7.3.260.0120.00616.57
7.3.250.0070.01016.56
7.3.240.0070.01116.66
7.3.230.0110.00816.82
7.3.210.0040.01616.73
7.3.200.0040.01816.68
7.3.190.0070.01516.48
7.3.180.0120.00416.55
7.3.170.0070.01016.79
7.3.160.0060.01616.59
7.3.120.0090.00914.97
7.3.110.0090.00914.92
7.3.100.0070.00914.81
7.3.90.0070.00714.96
7.3.80.0090.00414.83
7.3.70.0050.01014.85
7.3.60.0050.00714.88
7.3.50.0040.00914.80
7.3.40.0080.00614.87
7.3.30.0060.00514.96
7.3.20.0070.00616.52
7.3.10.0060.00816.49
7.3.00.0050.00816.75
7.2.330.0100.00716.77
7.2.320.0060.01216.51
7.2.310.0040.01216.72
7.2.300.0140.00316.49
7.2.290.0090.00916.97
7.2.250.0080.01115.07
7.2.240.0100.00914.98
7.2.230.0080.00715.24
7.2.220.0080.00515.12
7.2.210.0060.01114.94
7.2.200.0090.00715.05
7.2.190.0070.00615.16
7.2.180.0090.00515.15
7.2.170.0070.00714.95
7.2.60.0110.00417.11
7.1.330.0050.00715.89
7.1.320.0040.00715.88
7.1.310.0080.00415.96
7.1.300.0060.00816.08
7.1.290.0070.00815.88
7.1.280.0040.01015.85
7.1.270.0060.00615.91
7.1.260.0050.00715.93
7.1.200.0040.00715.84
7.1.70.0030.00317.26
7.1.60.0040.00717.42
7.1.50.0000.01117.16
7.1.40.0030.00916.67
7.1.30.0070.00416.70
7.1.20.0030.00716.98
7.1.10.0000.00716.73
7.1.00.0080.00016.74
7.0.200.0000.00716.80
7.0.190.0000.00716.94
7.0.180.0080.00316.31
7.0.170.0000.00816.28
7.0.160.0030.00516.37
7.0.150.0030.00616.27
7.0.140.0040.00416.27
7.0.130.0030.00516.59
7.0.120.0100.00016.62
7.0.110.0080.00016.27
7.0.100.0000.01016.27
7.0.90.0000.00816.36
7.0.80.0030.00616.49
7.0.70.0000.00716.40
7.0.60.0000.00716.27
7.0.50.0000.00716.45
7.0.40.0000.00716.27
7.0.30.0040.00416.27
7.0.20.0000.00816.27
7.0.10.0070.00416.27
7.0.00.0040.00416.27

preferences:
57.43 ms | 400 KiB | 5 Q