3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<html> <body> <table style="width: 100%"> <tr> <th>Firstname</th> <th>Lastname</th> <th>Age</th> </tr> <tr> <td>Jill</td> <td>Smith</td> <td>50</td> </tr> <tr> <td>Eve</td> <td>Jackson</td> <td>94</td> </tr> </table> </body> </html>'; $xmlObj = simplexml_load_string($xml); echo json_encode($xmlObj);

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.130.0100.00720.43
8.4.120.0090.00817.93
8.4.110.0060.00218.89
8.4.100.0120.00818.07
8.4.90.0110.00920.63
8.4.80.0210.00918.79
8.4.70.0210.00918.72
8.4.60.0280.00818.24
8.4.50.0300.00919.70
8.4.40.0350.00718.18
8.4.30.0330.00918.04
8.4.20.0270.00918.21
8.4.10.0300.00718.19
8.3.260.0140.00616.68
8.3.250.0070.00516.69
8.3.240.0030.00516.80
8.3.230.0100.00916.74
8.3.220.0140.00918.07
8.3.210.0180.00917.25
8.3.200.0260.00717.27
8.3.190.0260.00617.42
8.3.180.0210.00717.86
8.3.170.0290.00717.14
8.3.160.0280.00818.02
8.3.150.0280.00917.10
8.3.140.0240.00917.77
8.3.130.0190.00417.53
8.3.120.0200.00917.73
8.3.110.0270.00617.02
8.3.100.0270.00717.13
8.3.90.0260.00619.66
8.3.80.0250.00722.10
8.3.70.0310.00517.32
8.3.60.0340.00717.37
8.3.50.0280.00617.65
8.3.40.0270.00917.94
8.3.30.0230.00417.91
8.3.20.0270.00619.00
8.3.10.0190.00720.67
8.3.00.0160.00620.36
8.2.290.0150.00620.46
8.2.280.0190.00717.87
8.2.270.0200.00917.13
8.2.260.0240.00717.67
8.2.250.0200.00517.22
8.2.240.0230.00417.27
8.2.230.0210.00518.13
8.2.220.0210.00622.30
8.2.210.0240.00519.54
8.2.200.0210.00717.65
8.2.190.0220.00817.39
8.2.180.0210.00718.82
8.2.170.0280.00618.03
8.2.160.0250.00618.84
8.2.150.0270.00719.25
8.2.140.0190.00720.41
8.2.130.0170.00820.63
8.2.120.0210.00819.24
8.2.110.0220.00519.64
8.2.100.0190.00718.94
8.2.90.0190.00819.35
8.2.80.0180.00618.92
8.2.70.0160.00618.97
8.2.60.0180.00619.15
8.2.50.0200.00618.86
8.2.40.0190.00619.19
8.2.30.0170.00618.90
8.2.20.0160.00618.65
8.2.10.0200.00619.01
8.2.00.0160.00518.70
8.1.330.0070.00321.89
8.1.320.0200.00717.07
8.1.310.0240.00717.01
8.1.300.0250.00717.92
8.1.290.0270.00620.57
8.1.280.0250.00718.75
8.1.270.0200.00520.42
8.1.260.0160.00520.99
8.1.250.0160.00721.04
8.1.240.0190.00619.47
8.1.230.0200.00519.51
8.1.220.0180.00719.17
8.1.210.0180.00918.86
8.1.200.0190.00718.71
8.1.190.0180.00718.99
8.1.180.0180.00518.99
8.1.170.0160.00519.23
8.1.160.0150.00618.64
8.1.150.0150.00618.51
8.1.140.0150.00718.56
8.1.130.0150.00618.75
8.1.120.0150.00618.22
8.1.110.0170.00418.25
8.1.100.0130.00618.09
8.1.90.0130.00518.17
8.1.80.0140.00717.99
8.1.70.0130.00618.06
8.1.60.0150.00518.06
8.1.50.0150.00518.04
8.1.40.0140.00518.16
8.1.30.0140.00618.24
8.1.20.0160.00518.22
8.1.10.0150.00618.07
8.1.00.0150.00618.01
8.0.300.0200.00619.22
8.0.290.0230.00618.25
8.0.280.0200.00418.38
8.0.270.0170.00518.35
8.0.260.0180.00517.90
8.0.250.0140.00618.09
8.0.240.0120.00817.77
8.0.230.0140.00617.58
8.0.220.0130.00617.52
8.0.210.0140.00417.55
8.0.200.0130.00517.52
8.0.190.0130.00517.58
8.0.180.0130.00517.53
8.0.170.0140.00417.55
8.0.160.0140.00517.60
8.0.150.0130.00517.41
8.0.140.0140.00417.40
8.0.130.0130.00517.21
8.0.120.0140.00617.41
8.0.110.0140.00417.54
8.0.100.0140.00517.40
8.0.90.0130.00517.42
8.0.80.0140.00517.47
8.0.70.0100.00617.49
8.0.60.0100.00717.38
8.0.50.0130.00417.40
8.0.30.0120.00517.48
8.0.20.0120.00517.54
8.0.10.0120.00517.47
8.0.00.0120.00517.69
7.4.330.0130.00417.03
7.4.320.0130.00417.54
7.4.300.0100.00617.28
7.4.290.0130.00517.17
7.4.280.0130.00517.21
7.4.270.0130.00517.19
7.4.260.0140.00517.02
7.4.250.0160.00417.18
7.4.240.0150.00517.19
7.4.230.0130.00517.21
7.4.220.0140.00517.17
7.4.210.0130.00617.17
7.4.200.0140.00417.22
7.4.190.0140.00417.28
7.4.180.0140.00517.27
7.4.160.0130.00617.16
7.4.150.0130.00617.17
7.4.140.0150.00517.10
7.4.130.0140.00617.11
7.4.120.0140.00517.13
7.4.110.0130.00617.14
7.4.100.0130.00517.16
7.4.90.0140.00417.10
7.4.80.0140.00517.09
7.4.70.0140.00517.14
7.4.60.0130.00517.12
7.4.50.0140.00517.06
7.4.40.0150.00517.19
7.4.30.0130.00517.20
7.4.20.0140.00417.10
7.4.10.0140.00417.10
7.4.00.0110.00517.13
7.3.330.0130.00516.96
7.3.320.0130.00516.82
7.3.310.0140.00417.03
7.3.300.0130.00517.04
7.3.290.0120.00516.94
7.3.280.0160.00317.02
7.3.270.0140.00516.96
7.3.260.0130.00516.98
7.3.250.0150.00516.99
7.3.240.0130.00616.95
7.3.230.0150.00416.95
7.3.220.0150.00416.91
7.3.210.0140.00616.94
7.3.200.0150.00516.90
7.3.190.0130.00716.92
7.3.180.0150.00516.90
7.3.170.0160.00416.95
7.3.160.0140.00516.91
7.3.150.0150.00516.91
7.3.140.0150.00516.92
7.3.130.0160.00516.93
7.3.120.0150.00516.89
7.3.110.0130.00616.88
7.3.100.0150.00416.87
7.3.90.0140.00517.10
7.3.80.0140.00616.94
7.3.70.0140.00317.02
7.3.60.0130.00617.07
7.3.50.0140.00517.06
7.3.40.0130.00617.08
7.3.30.0140.00517.10
7.3.20.0150.00417.82
7.3.10.0130.00517.73
7.3.00.0150.00517.71

preferences:
24.62 ms | 403 KiB | 5 Q