3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = '<?xml version="1.0" encoding="UTF-8"?> <PrintLetterBarcodeData uid="123" name="Demo Name" gender="M" yob="2000" gname="Abdul Mannan" lm="city" vtc="City2" po="norway" dist="california" subdist="Ny" state="US" pc="12345" dob="22/06/2000"/>'; $array=json_decode(json_encode(simplexml_load_string($result)),true); foreach($array['@attributes'] as $k=>$v){ echo "<div>$k : $v</div>\n"; }

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.4.140.0120.00818.01
8.4.130.0120.00719.02
8.4.120.0050.00424.17
8.4.110.0140.00619.03
8.4.100.0140.00619.21
8.4.90.0120.00820.72
8.4.80.0040.00419.02
8.4.70.0150.00418.21
8.4.60.0090.01119.04
8.4.50.0110.00920.62
8.4.40.0070.00318.05
8.4.30.0080.00318.02
8.4.20.0130.00719.75
8.4.10.0000.00919.65
8.3.270.0130.00616.84
8.3.260.0060.00516.66
8.3.250.0080.00819.13
8.3.240.0120.00217.21
8.3.230.0040.00416.78
8.3.220.0120.00619.04
8.3.210.0100.00916.88
8.3.200.0060.00316.91
8.3.190.0070.01017.59
8.3.180.0150.00319.20
8.3.170.0130.00619.09
8.3.160.0140.00416.87
8.3.150.0090.00917.32
8.3.140.0030.00517.00
8.3.130.0000.00818.71
8.3.120.0130.00619.16
8.3.110.0000.00916.63
8.3.100.0070.00424.06
8.3.90.0100.01026.77
8.3.80.0030.00618.43
8.3.70.0070.01418.56
8.3.60.0070.01118.68
8.3.50.0090.00917.41
8.3.40.0000.01418.96
8.3.30.0090.00919.04
8.3.20.0040.00420.54
8.3.10.0050.00322.20
8.3.00.0040.00423.88
8.2.290.0130.00520.60
8.2.280.0040.00418.97
8.2.270.0000.01517.34
8.2.260.0030.00618.80
8.2.250.0060.00318.43
8.2.240.0050.00317.32
8.2.230.0040.00420.94
8.2.220.0000.01537.54
8.2.210.0040.00426.77
8.2.200.0040.00818.67
8.2.190.0150.00616.75
8.2.180.0040.01118.54
8.2.170.0080.00819.21
8.2.160.0070.01322.96
8.2.150.0050.00324.18
8.2.140.0030.00524.66
8.2.130.0040.00422.33
8.2.120.0050.00226.35
8.2.110.0090.00021.13
8.2.100.0040.00818.16
8.2.90.0070.00317.88
8.2.80.0050.00319.04
8.2.70.0080.00317.87
8.2.60.0050.00318.29
8.2.50.0050.00318.07
8.2.40.0060.00318.46
8.2.30.0000.00718.22
8.2.20.0000.00818.36
8.2.10.0040.00418.34
8.2.00.0070.00318.29
8.1.330.0080.01022.04
8.1.320.0110.00818.13
8.1.310.0000.00818.29
8.1.300.0040.00418.30
8.1.290.0050.00530.84
8.1.280.0170.00325.92
8.1.270.0040.00424.12
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00717.61
8.1.230.0080.00418.08
8.1.220.0000.00918.01
8.1.210.0050.00318.77
8.1.200.0060.00317.38
8.1.190.0030.01017.48
8.1.180.0030.00518.10
8.1.170.0050.00319.04
8.1.160.0040.00419.09
8.1.150.0040.00420.27
8.1.140.0080.00017.96
8.1.130.0070.00019.17
8.1.120.0000.00817.76
8.1.110.0000.00917.74
8.1.100.0040.00417.68
8.1.90.0000.00817.76
8.1.80.0080.00017.57
8.1.70.0000.00717.72
8.1.60.0050.00317.82
8.1.50.0050.00317.63
8.1.40.0000.00717.63
8.1.30.0080.00017.96
8.1.20.0040.00417.95
8.1.10.0050.00317.68
8.1.00.0000.00817.66
8.0.300.0040.00419.40
8.0.290.0000.00716.88
8.0.280.0050.00518.69
8.0.270.0070.00017.36
8.0.260.0000.00618.62
8.0.250.0030.00317.12
8.0.240.0060.00317.06
8.0.230.0000.00717.05
8.0.220.0000.00717.00
8.0.210.0000.00617.02
8.0.200.0000.00617.22
8.0.190.0050.00317.05
8.0.180.0050.00217.15
8.0.170.0000.00817.09
8.0.160.0070.00317.20
8.0.150.0080.00016.93
8.0.140.0040.00417.09
8.0.130.0030.00313.59
8.0.120.0000.00716.99
8.0.110.0040.00417.12
8.0.100.0000.00717.03
8.0.90.0050.00217.05
8.0.80.0000.01517.06
8.0.70.0040.00417.12
8.0.60.0040.00417.15
8.0.50.0000.00717.12
8.0.30.0080.00917.37
8.0.20.0070.01217.40
8.0.10.0040.00417.15
8.0.00.0070.01716.79
7.4.330.0060.00015.55
7.4.320.0070.00016.73
7.4.300.0000.00716.72
7.4.290.0040.00416.79
7.4.280.0050.00316.68
7.4.270.0070.00016.69
7.4.260.0030.00316.71
7.4.250.0070.00016.75
7.4.240.0000.00716.86
7.4.230.0030.00316.59
7.4.220.0080.01416.69
7.4.210.0090.00616.76
7.4.200.0000.00716.48
7.4.160.0070.01116.64
7.4.150.0150.00317.40
7.4.140.0080.01017.86
7.4.130.0100.01016.78
7.4.120.0080.01016.65
7.4.110.0100.00716.72
7.4.100.0090.00916.85
7.4.90.0060.01316.80
7.4.80.0060.01119.39
7.4.70.0090.00916.97
7.4.60.0100.01016.59
7.4.50.0040.01116.59
7.4.40.0060.00916.62
7.4.30.0090.01216.74
7.4.00.0100.00715.21
7.3.330.0000.00513.19
7.3.320.0030.00313.29
7.3.310.0070.00016.40
7.3.300.0000.00716.48
7.3.290.0090.00616.51
7.3.280.0080.00916.46
7.3.270.0190.00017.40
7.3.260.0070.01016.78
7.3.250.0050.01316.58
7.3.240.0120.00516.76
7.3.230.0150.00316.62
7.3.210.0040.01416.88
7.3.200.0070.01516.72
7.3.190.0080.00816.61
7.3.180.0160.00016.75
7.3.170.0080.00816.68
7.3.160.0070.01316.60
7.2.330.0120.01216.90
7.2.320.0140.00416.94
7.2.310.0090.00916.55
7.2.300.0030.01417.00
7.2.290.0160.00317.04
7.2.60.0100.00717.16
7.1.200.0040.00715.89
7.1.100.0170.00315.98
7.1.90.0260.00516.38
7.1.80.4020.01316.62
7.1.70.3580.00715.29
7.1.60.3670.01933.17
7.1.50.5700.01333.07
7.1.40.4660.02332.66
7.1.30.7030.01532.82
7.1.20.3090.00732.70
7.1.10.4610.01714.84
7.1.00.3190.01014.89
7.0.240.2780.01015.34
7.0.230.0190.01615.93
7.0.220.0090.01715.99
7.0.210.3090.00914.83
7.0.200.6110.01015.00
7.0.190.5470.01014.98
7.0.180.3940.00314.71
7.0.170.4240.01014.55
7.0.160.4560.01314.39
7.0.150.3580.00714.51
7.0.140.3250.00314.73
7.0.130.3370.01014.73
7.0.120.4690.01014.72
7.0.110.3170.00714.52
7.0.100.2710.00314.58
7.0.90.3180.01014.66
7.0.80.3340.00614.55
7.0.70.5060.01314.55
7.0.60.5040.01314.45
7.0.50.4890.01614.58
7.0.40.3890.00714.70
7.0.30.5570.00914.83
7.0.20.4960.01014.73
7.0.10.5170.01914.88
7.0.00.5770.01714.65

preferences:
30.49 ms | 403 KiB | 5 Q