3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<XML <html> <head><title></title></head> <body> <content type="text">the content</content> </body> </html> XML; $xe = new SimpleXMLElement($xml); echo $xe->body->content['type'];

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.0090.00917.62
8.3.40.0060.01218.77
8.3.30.0070.00718.95
8.3.20.0030.00618.78
8.3.10.0080.00020.61
8.3.00.0000.00817.63
8.2.180.0070.01016.88
8.2.170.0120.00622.96
8.2.160.0100.00322.39
8.2.150.0040.00425.66
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00420.01
8.2.110.0070.00321.18
8.2.100.0120.00018.09
8.2.90.0040.00419.55
8.2.80.0040.00418.05
8.2.70.0050.00317.88
8.2.60.0080.00018.17
8.2.50.0040.00418.07
8.2.40.0040.00418.41
8.2.30.0040.00418.30
8.2.20.0040.00417.87
8.2.10.0050.00217.90
8.2.00.0040.00417.84
8.1.280.0030.01225.92
8.1.270.0070.01024.66
8.1.260.0030.01026.35
8.1.250.0000.00728.09
8.1.240.0040.00422.71
8.1.230.0050.00521.16
8.1.220.0060.00318.77
8.1.210.0040.00419.04
8.1.200.0030.00617.47
8.1.190.0040.00417.53
8.1.180.0050.00318.10
8.1.170.0040.00420.85
8.1.160.0000.00719.05
8.1.150.0000.00818.90
8.1.140.0000.00717.59
8.1.130.0030.00318.03
8.1.120.0000.00717.70
8.1.110.0030.00517.50
8.1.100.0050.00217.47
8.1.90.0070.00017.65
8.1.80.0000.00717.63
8.1.70.0000.00717.61
8.1.60.0050.00517.79
8.1.50.0070.00017.57
8.1.40.0030.00517.70
8.1.30.0040.00417.80
8.1.20.0040.00417.73
8.1.10.0030.00517.65
8.1.00.0000.00817.56
8.0.300.0030.00320.02
8.0.290.0060.00317.00
8.0.280.0000.00718.64
8.0.270.0000.00717.46
8.0.260.0000.00617.13
8.0.250.0000.00717.25
8.0.240.0080.00017.17
8.0.230.0000.00717.07
8.0.220.0030.00316.99
8.0.210.0060.00317.04
8.0.200.0000.00717.12
8.0.190.0080.00317.21
8.0.180.0040.00417.04
8.0.170.0040.00417.11
8.0.160.0000.00717.13
8.0.150.0060.00317.10
8.0.140.0000.00816.94
8.0.130.0050.00013.56
8.0.120.0070.00016.96
8.0.110.0040.00416.90
8.0.100.0000.00717.01
8.0.90.0040.00417.08
8.0.80.0120.00316.99
8.0.70.0000.00716.89
8.0.60.0040.00417.18
8.0.50.0000.00716.91
8.0.30.0070.01317.34
8.0.20.0110.00817.52
8.0.10.0070.00017.23
8.0.00.0080.01216.88
7.4.330.0000.00613.24
7.4.320.0000.00716.62
7.4.300.0030.00316.70
7.4.290.0000.00716.71
7.4.280.0030.00616.68
7.4.270.0050.00316.68
7.4.260.0000.00613.46
7.4.250.0000.00816.69
7.4.240.0030.00316.82
7.4.230.0030.00316.78
7.4.220.0120.00616.87
7.4.210.0090.00716.81
7.4.200.0050.00216.85
7.4.190.0080.00016.66
7.4.160.0080.00816.56
7.4.150.0170.00316.54
7.4.140.0150.00317.36
7.4.130.0060.01316.83
7.4.120.0130.00516.82
7.4.110.0100.00716.83
7.4.100.0100.01016.46
7.4.90.0100.00716.64
7.4.80.0090.01216.75
7.4.70.0130.00316.56
7.4.60.0090.00916.86
7.4.50.0040.00416.96
7.4.40.0100.00318.64
7.4.30.0080.00816.73
7.4.00.0130.00015.22
7.3.330.0030.00313.38
7.3.320.0050.00013.38
7.3.310.0000.00716.48
7.3.300.0000.00716.44
7.3.290.0070.00716.46
7.3.280.0110.00916.47
7.3.270.0060.01217.07
7.3.260.0070.01018.24
7.3.250.0120.00816.49
7.3.240.0060.01316.64
7.3.230.0100.00616.57
7.3.210.0130.00416.62
7.3.200.0070.01319.39
7.3.190.0070.01116.64
7.3.180.0130.00416.77
7.3.170.0000.01516.57
7.3.160.0090.00616.50
7.3.120.0040.01215.03
7.3.00.0060.00916.18
7.2.330.0030.01316.59
7.2.320.0110.00716.55
7.2.310.0290.02416.63
7.2.300.0060.01216.71
7.2.290.0090.00916.58
7.2.130.0100.00716.59
7.2.120.0100.00716.86
7.2.110.0090.00616.72
7.2.100.0130.00316.93
7.2.90.0120.00316.41
7.2.80.0100.00616.82
7.2.70.0100.00617.07
7.2.60.0080.00616.55
7.2.50.0100.00616.59
7.2.40.0130.00316.95
7.2.30.0110.00416.55
7.2.20.0120.01216.62
7.2.10.0120.00616.75
7.2.00.0030.01016.87
7.1.250.0070.00715.44
7.1.240.0060.00915.25
7.1.230.0060.00915.34
7.1.220.0100.00715.63
7.1.210.0100.00715.66
7.1.200.0120.00615.92
7.1.190.0090.00515.70
7.1.180.0130.00615.38
7.1.170.0060.00315.62
7.1.160.0150.00015.77
7.1.150.0120.00315.54
7.1.140.0080.00815.46
7.1.130.0070.01115.67
7.1.120.0070.00715.75
7.1.110.0110.00415.73
7.1.100.0100.00315.95
7.1.90.0080.00415.83
7.1.80.0060.01015.81
7.1.70.0060.00916.50
7.1.60.0030.01217.59
7.1.50.0090.00416.30
7.1.40.0110.00415.41
7.1.30.0120.01215.75
7.1.20.0070.01015.65
7.1.10.0150.00715.87
7.1.00.0060.03919.21
7.0.330.0030.00715.27
7.0.320.0100.00315.42
7.0.310.0050.00515.60
7.0.300.0090.00615.18
7.0.290.0080.00415.60
7.0.280.0100.00315.21
7.0.270.0100.00315.38
7.0.260.0070.00715.47
7.0.250.0070.00715.22
7.0.240.0070.00315.59
7.0.230.0070.00715.51
7.0.220.0060.00915.51
7.0.210.0070.00715.48
7.0.200.0100.00415.87
7.0.190.0070.00715.23
7.0.180.0060.01315.39
7.0.170.0100.00715.54
7.0.160.0120.00915.50
7.0.150.0040.01215.39
7.0.140.0070.03618.76
7.0.130.0070.01315.32
7.0.120.0070.02018.82
7.0.110.0180.00515.58
7.0.100.0040.01315.36
7.0.90.0060.01015.28
7.0.80.0100.00615.59
7.0.70.0130.00315.27
7.0.60.0050.04717.92
7.0.50.0100.02616.71
7.0.40.0030.02616.75
7.0.30.0280.03216.81
7.0.20.0210.04716.88
7.0.10.0260.03816.84
7.0.00.0090.04516.91
5.6.380.0030.00814.24
5.6.370.0100.00314.13
5.6.360.0020.01014.59
5.6.350.0030.01014.27
5.6.340.0060.00614.48
5.6.330.0120.00014.41
5.6.320.0070.01014.32
5.6.310.0040.00914.35
5.6.300.0070.00714.07
5.6.290.0060.00914.80
5.6.280.0070.04717.73
5.6.270.0060.00614.47
5.6.260.0040.00714.01
5.6.250.0090.00614.34
5.6.240.0000.01014.22
5.6.230.0000.01014.07
5.6.220.0100.00713.58
5.6.210.0070.03317.39
5.6.200.0030.03016.23
5.6.190.0050.02717.53
5.6.180.0220.03717.61
5.6.170.0190.04217.44
5.6.160.0070.04517.52
5.6.150.0030.03316.41
5.6.140.0120.04116.21
5.6.130.0100.02016.38
5.6.120.0060.02517.53
5.6.110.0030.05117.56
5.6.100.0150.03317.70
5.6.90.0060.02517.46
5.6.80.0070.03717.28
5.6.70.2130.02817.32
5.6.60.0000.01114.35
5.6.50.0040.01213.88
5.6.40.0100.00713.92
5.6.30.0090.00613.85
5.6.20.0160.00014.14
5.6.10.0110.00614.41
5.6.00.0160.00414.17
5.5.380.0070.00411.09
5.5.370.0040.00710.83
5.5.360.0050.01011.17
5.5.350.0220.04015.65
5.5.340.0070.04014.40
5.5.330.0080.02815.57
5.5.320.0070.04415.86
5.5.310.0150.04215.50
5.5.300.0100.03914.34
5.5.290.0060.02214.49
5.5.280.0060.03115.77
5.5.270.0060.02115.83
5.5.260.0090.04715.85
5.5.250.0040.04915.77
5.5.240.0080.03515.41
5.5.230.0090.00411.03
5.5.220.0120.00310.94
5.5.210.0070.01011.17
5.5.200.0070.01011.15
5.5.190.0030.00910.91
5.5.180.0110.00410.91
5.5.170.0080.00810.88
5.5.160.0100.00311.12
5.5.150.0110.00011.00
5.5.140.0110.00510.90
5.5.130.0110.00310.81
5.5.120.0100.00310.93
5.5.110.0100.00511.14
5.5.100.0090.00511.21
5.5.90.0130.00010.98
5.5.80.0100.00511.32
5.5.70.0070.00410.83
5.5.60.0080.00810.83
5.5.50.0090.00610.83
5.5.40.0000.01311.10
5.5.30.0070.00711.14
5.5.20.0080.00811.12
5.5.10.0040.00911.01
5.5.00.0080.00611.11
5.4.450.0110.02715.32
5.4.440.0090.02815.25
5.4.430.0130.04115.40
5.4.420.0080.03215.18
5.4.410.0090.02115.12
5.4.400.0050.02215.11
5.4.390.0070.02215.05
5.4.380.0070.02914.99
5.4.370.0120.02815.18
5.4.360.0100.02014.92
5.4.350.0100.03715.11
5.4.340.0060.02114.88
5.4.330.0040.01110.89
5.4.320.0070.03715.05
5.4.310.0100.02815.18
5.4.300.0070.03115.11
5.4.290.0070.02015.25
5.4.280.0110.02015.10
5.4.270.0060.02415.04
5.4.260.0000.02415.10
5.4.250.0050.03614.86
5.4.240.0090.02415.04
5.4.230.0060.02315.01
5.4.220.0050.02315.09
5.4.210.0020.02414.81
5.4.200.0020.02515.00
5.4.190.0060.02014.83
5.4.180.0090.02414.87
5.4.170.0100.03715.19
5.4.160.0070.02315.10
5.4.150.0040.04014.68
5.4.140.0070.03713.65
5.4.130.0040.04313.88
5.4.120.0050.03613.73
5.4.110.0080.02013.71
5.4.100.0090.03813.79
5.4.90.0070.02213.92
5.4.80.0100.03613.88
5.4.70.0110.03013.70
5.4.60.0080.03213.82
5.4.50.0050.02313.55
5.4.40.0090.03013.57
5.4.30.0090.02013.45
5.4.20.0020.03813.57
5.4.10.0070.03713.49
5.4.00.0030.03413.29
5.3.290.0070.03912.66
5.3.280.0010.02412.57
5.3.270.0040.03312.56
5.3.260.0120.02312.58
5.3.250.0060.04312.54
5.3.240.0060.02612.57
5.3.230.0100.03612.57
5.3.220.0090.02812.52
5.3.210.0040.02512.47
5.3.200.0100.03712.51
5.3.190.0060.03812.60
5.3.180.0050.03512.63
5.3.170.0060.03512.58
5.3.160.0030.02712.65
5.3.150.0070.01812.54
5.3.140.0050.04312.63
5.3.130.0000.02512.52
5.3.120.0050.02012.53
5.3.110.0080.03612.58
5.3.100.0030.02912.21
5.3.90.0030.03012.20
5.3.80.0030.03512.24
5.3.70.0050.03912.30
5.3.60.0090.03512.38
5.3.50.0090.03612.23
5.3.40.0070.03212.29
5.3.30.0070.03712.23
5.3.20.0080.02012.17
5.3.10.0090.02512.04
5.3.00.0060.02012.10
5.2.170.0020.03410.80
5.2.160.0090.02910.84
5.2.150.0040.01410.86
5.2.140.0020.02010.90
5.2.130.0070.01510.84
5.2.120.0060.02510.84
5.2.110.0070.01810.77
5.2.100.0060.01610.78
5.2.90.0000.02310.87
5.2.80.0070.02610.86
5.2.70.0110.02810.83
5.2.60.0080.02710.84
5.2.50.0050.02410.84
5.2.40.0020.02410.73
5.2.30.0050.01810.78
5.2.20.0080.02910.74
5.2.10.0070.02510.74
5.2.00.0090.01510.67
5.1.60.0060.02810.33
5.1.50.0040.01910.24
5.1.40.0050.03010.32
5.1.30.0050.03410.49
5.1.20.0030.02610.50
5.1.10.0050.03110.32
5.1.00.0110.02010.35
5.0.50.0030.0259.49
5.0.40.0000.0169.53
5.0.30.0020.0289.43
5.0.20.0020.0149.44
5.0.10.0030.0139.38
5.0.00.0020.0319.40
4.4.90.0040.0189.11
4.4.80.0060.0089.11
4.4.70.0040.0109.11
4.4.60.0040.0109.11
4.4.50.0030.0109.11
4.4.40.0050.0129.11
4.4.30.0000.0179.11
4.4.20.0030.0169.11
4.4.10.0060.0189.11
4.4.00.0030.0209.11
4.3.110.0010.0209.11
4.3.100.0010.0139.11
4.3.90.0040.0089.11
4.3.80.0000.0299.11
4.3.70.0030.0169.11
4.3.60.0020.0199.11
4.3.50.0000.0229.11
4.3.40.0030.0189.11
4.3.30.0040.0149.11
4.3.20.0020.0179.11
4.3.10.0020.0179.11
4.3.00.0010.0119.11

preferences:
44.76 ms | 401 KiB | 5 Q