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($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.0110.01118.68
8.3.50.0120.00316.49
8.3.40.0120.00418.96
8.3.30.0070.00718.73
8.3.20.0030.00621.98
8.3.10.0040.00421.98
8.3.00.0040.00419.69
8.2.180.0140.00717.00
8.2.170.0070.00722.96
8.2.160.0090.00619.54
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0060.00326.16
8.2.120.0040.00420.14
8.2.110.0100.00019.56
8.2.100.0060.00617.97
8.2.90.0040.00419.45
8.2.80.0050.00317.97
8.2.70.0030.00517.75
8.2.60.0040.00418.16
8.2.50.0040.00418.10
8.2.40.0070.00020.80
8.2.30.0040.00419.37
8.2.20.0040.00418.26
8.2.10.0070.00018.29
8.2.00.0000.00718.22
8.1.280.0080.01125.92
8.1.270.0060.00323.83
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00321.68
8.1.230.0120.00019.32
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0030.00617.38
8.1.190.0000.00817.48
8.1.180.0060.00318.10
8.1.170.0080.00018.74
8.1.160.0000.00819.06
8.1.150.0000.00719.05
8.1.140.0040.00419.75
8.1.130.0030.00318.95
8.1.120.0000.00717.51
8.1.110.0000.00717.68
8.1.100.0040.00417.50
8.1.90.0040.00417.67
8.1.80.0040.00417.70
8.1.70.0000.00717.48
8.1.60.0040.00417.82
8.1.50.0000.00817.65
8.1.40.0040.00417.63
8.1.30.0000.00717.89
8.1.20.0050.00317.85
8.1.10.0000.00917.77
8.1.00.0040.00417.52
8.0.300.0000.00820.17
8.0.290.0050.00216.88
8.0.280.0000.00818.60
8.0.270.0000.00717.38
8.0.260.0030.00319.18
8.0.250.0070.00016.99
8.0.240.0050.00417.04
8.0.230.0070.00017.11
8.0.220.0000.00817.00
8.0.210.0030.00317.12
8.0.200.0090.00017.12
8.0.190.0090.00017.10
8.0.180.0040.00417.00
8.0.170.0000.00817.16
8.0.160.0070.00017.00
8.0.150.0000.00716.88
8.0.140.0000.00716.94
8.0.130.0000.00813.46
8.0.120.0040.00417.08
8.0.110.0070.00016.84
8.0.100.0030.00617.13
8.0.90.0040.00417.08
8.0.80.0060.01217.07
8.0.70.0080.00016.93
8.0.60.0030.00517.12
8.0.50.0040.00416.98
8.0.30.0080.00917.10
8.0.20.0080.01117.40
8.0.10.0080.00016.99
8.0.00.0110.00716.98
7.4.330.0070.00015.55
7.4.320.0030.00316.63
7.4.300.0000.00716.65
7.4.290.0060.00316.68
7.4.280.0030.00516.75
7.4.270.0000.00716.79
7.4.260.0030.00316.77
7.4.250.0000.00716.72
7.4.240.0000.00716.68
7.4.230.0020.00516.72
7.4.220.0060.01916.69
7.4.210.0130.00616.69
7.4.200.0030.00316.86
7.4.160.0100.00616.70
7.4.150.0110.00717.40
7.4.140.0120.00817.86
7.4.130.0110.00716.76
7.4.120.0090.01016.61
7.4.110.0140.01116.60
7.4.100.0070.01116.62
7.4.90.0120.00616.61
7.4.80.0140.01019.39
7.4.70.0060.01116.67
7.4.60.0070.01016.65
7.4.50.0080.00316.54
7.4.40.0030.01316.74
7.4.30.0090.00916.54
7.4.00.0070.01014.90
7.3.330.0020.00513.13
7.3.320.0060.00013.28
7.3.310.0030.00316.21
7.3.300.0070.00016.26
7.3.290.0030.00316.34
7.3.280.0090.00716.47
7.3.270.0060.01217.40
7.3.260.0110.00816.49
7.3.250.0090.00916.62
7.3.240.0110.00816.69
7.3.230.0170.00616.58
7.3.210.0100.01016.70
7.3.200.0100.01016.71
7.3.190.0160.00016.51
7.3.180.0030.01616.42
7.3.170.0110.01116.73
7.3.160.0100.01316.63
7.3.10.0070.00416.77
7.3.00.0000.01316.32
7.2.330.0030.01516.78
7.2.320.0070.01016.59
7.2.310.0090.00916.86
7.2.300.0120.00916.35
7.2.290.0050.01116.77
7.2.130.0130.00816.63
7.2.120.0080.00316.90
7.2.110.0040.00816.96
7.2.100.0030.01016.91
7.2.90.0100.00716.90
7.2.80.0070.00716.98
7.2.70.0000.01416.91
7.2.60.0110.00416.93
7.2.50.0030.00616.74
7.2.40.0000.01516.75
7.2.30.0040.01216.90
7.2.20.0040.00717.08
7.2.10.0060.00616.90
7.2.00.0030.01016.67
7.1.250.0000.01015.58
7.1.70.0060.00617.34
7.1.60.0040.00817.38
7.1.50.0100.00317.02
7.1.40.0040.00816.67
7.1.30.0090.00616.73
7.1.20.0070.00416.75
7.1.10.0170.00016.84
7.1.00.0080.00016.95
7.0.200.0000.00816.74
7.0.190.0000.00716.91
7.0.180.0030.00716.52
7.0.170.0040.00716.27
7.0.160.0030.01016.52
7.0.150.0000.01116.35
7.0.140.0050.00316.26
7.0.130.0000.01016.60
7.0.120.0030.01416.62
7.0.110.0000.01116.36
7.0.100.0040.00816.50
7.0.90.0040.00416.41
7.0.80.0000.01316.45
7.0.70.0030.00716.32
7.0.60.0060.00316.24
7.0.50.0100.00316.43
7.0.40.0030.00915.56
7.0.30.0020.00515.56
7.0.20.0070.01015.56
7.0.10.0060.00815.56
7.0.00.0000.01515.56

preferences:
63.41 ms | 400 KiB | 5 Q