3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = new SimpleXMLElement('<root><elements attr="test"><el>test1</el><el>test2</el><el test_attr="123">test3</el></elements></root>'); var_dump( $xml, $xml->elements->el[2] );

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.1.130.0070.00017.97
8.1.120.0040.00417.58
8.1.110.0040.00417.47
8.1.100.0070.00017.61
8.1.90.0040.00417.52
8.1.80.0000.00717.48
8.1.70.0070.00017.53
8.1.60.0050.00317.61
8.1.50.0040.00417.67
8.1.40.0000.00817.68
8.1.30.0040.00417.58
8.1.20.0000.00817.66
8.1.10.0040.00417.64
8.1.00.0130.00017.78
8.0.260.0000.00716.84
8.0.250.0070.00017.02
8.0.240.0040.00417.09
8.0.230.0030.00317.13
8.0.220.0070.00016.90
8.0.210.0000.00716.94
8.0.200.0000.00617.06
8.0.190.0000.00717.06
8.0.180.0050.00217.14
8.0.170.0080.00016.95
8.0.160.0030.00316.89
8.0.150.0070.00016.85
8.0.140.0040.00417.02
8.0.130.0000.00613.44
8.0.120.0040.00417.02
8.0.110.0040.00417.05
8.0.100.0050.00216.88
8.0.90.0050.00217.08
8.0.80.0080.00816.95
8.0.70.0000.00716.84
8.0.60.0040.00416.95
8.0.50.0070.00016.90
8.0.30.0140.00617.18
8.0.20.0090.01217.67
8.0.10.0050.00217.19
8.0.00.0090.01016.96
7.4.330.0000.00515.00
7.4.320.0000.00716.83
7.4.300.0000.00616.75
7.4.290.0000.00816.62
7.4.280.0040.00416.77
7.4.270.0070.00016.61
7.4.260.0000.00816.80
7.4.250.0000.00716.79
7.4.240.0040.00416.68
7.4.230.0000.00716.90
7.4.220.0120.00616.86
7.4.210.0070.00816.73
7.4.200.0040.00416.47
7.4.190.0080.00016.73
7.4.160.0000.01716.78
7.4.150.0040.01317.40
7.4.140.0120.00517.86
7.4.130.0080.00916.81
7.4.120.0110.00616.71
7.4.110.0090.00916.82
7.4.100.0100.01016.69
7.4.90.0040.01516.64
7.4.80.0060.01219.39
7.4.70.0090.00916.61
7.4.60.0150.00316.67
7.4.50.0000.00516.42
7.4.40.0060.01222.77
7.4.30.0090.01216.88
7.4.10.0060.01314.96
7.4.00.0090.00615.01
7.3.330.0020.00213.34
7.3.320.0000.00613.22
7.3.310.0070.00016.42
7.3.300.0030.00316.32
7.3.290.0020.01316.45
7.3.280.0110.01016.41
7.3.270.0100.00717.40
7.3.260.0120.00916.80
7.3.250.0090.00916.39
7.3.240.0150.00916.73
7.3.230.0180.00016.54
7.3.210.0070.01016.70
7.3.200.0160.00419.39
7.3.190.0030.01916.81
7.3.180.0070.01016.60
7.3.170.0130.00416.60
7.3.160.0040.01516.82
7.3.130.0090.00914.59
7.3.120.0050.01014.86
7.3.110.0090.01014.61
7.3.100.0080.00714.91
7.3.90.0060.00915.04
7.3.80.0080.00414.72
7.3.70.0080.00514.93
7.3.60.0070.00614.85
7.3.50.0060.00814.81
7.3.40.0070.00614.67
7.3.30.0110.00514.85
7.3.20.0100.00516.65
7.3.10.0050.01016.49
7.3.00.0100.00316.62
7.2.330.0140.00416.55
7.2.320.0090.00916.84
7.2.310.0160.00316.81
7.2.300.0040.01816.45
7.2.290.0130.00316.51
7.2.260.0150.00015.07
7.2.250.0090.00815.03
7.2.240.0060.01014.98
7.2.230.0080.00915.06
7.2.220.0050.01115.17
7.2.210.0030.01114.84
7.2.200.0070.00815.17
7.2.190.0050.01115.10
7.2.180.0110.00515.13
7.2.170.0020.01014.95
7.2.160.0100.00614.99
7.2.150.0030.01216.96
7.2.140.0020.01216.91
7.2.130.0040.00916.90
7.2.120.0040.01116.88
7.2.110.0060.01116.89
7.2.100.0050.01117.01
7.2.90.0060.01016.66
7.2.80.0050.01016.96
7.2.70.0050.01016.92
7.2.60.0060.00616.82
7.2.50.0110.00517.01
7.2.40.0110.00616.98
7.2.30.0050.00916.94
7.2.20.0070.00916.70
7.2.10.0090.00916.97
7.2.00.0070.00817.68
7.1.330.0080.00815.79
7.1.320.0100.00615.84
7.1.310.0050.00515.70
7.1.300.0030.01115.64
7.1.290.0050.00815.63
7.1.280.0080.00415.77
7.1.270.0080.00615.65
7.1.260.0030.00715.91
7.1.250.0060.00815.75
7.1.240.0100.00415.88
7.1.230.0020.01115.86
7.1.220.0120.00215.82
7.1.210.0060.00715.98
7.1.200.0070.00715.91
7.1.190.0110.00315.85
7.1.180.0050.00815.79
7.1.170.0050.01015.87
7.1.160.0070.00515.84
7.1.150.0050.00715.81
7.1.140.0050.01115.97
7.1.130.0050.00615.58
7.1.120.0050.00915.93
7.1.110.0130.00215.86
7.1.100.0030.01016.61
7.1.90.0050.00815.85
7.1.80.0060.00815.87
7.1.70.0020.01016.09
7.1.60.0070.01217.04
7.1.50.0110.00916.19
7.1.40.0040.00915.84
7.1.30.0080.00315.85
7.1.20.0030.00815.94
7.1.10.0090.00415.65
7.1.00.0060.02218.10
7.0.330.0070.00915.39
7.0.320.0100.00315.55
7.0.310.0020.01015.42
7.0.300.0030.01215.24
7.0.290.0020.01215.43
7.0.280.0040.00915.40
7.0.270.0050.00815.39
7.0.260.0040.00915.54
7.0.250.0040.01015.42
7.0.240.0030.01315.36
7.0.230.0030.01215.45
7.0.220.0040.01115.47
7.0.210.0000.01115.47
7.0.200.0040.01015.84
7.0.190.0000.01615.46
7.0.180.0060.00615.47
7.0.170.0030.00915.49
7.0.160.0080.00615.59
7.0.150.0090.00715.40
7.0.140.0060.02717.66
7.0.130.0050.00815.51
7.0.120.0000.01215.49
7.0.110.0050.00715.40
7.0.100.0020.01215.47
7.0.90.0070.00915.49
7.0.80.0180.02016.93
7.0.70.0060.01917.05
7.0.60.0110.03116.88
7.0.50.0080.01717.24
7.0.40.0070.03315.83
7.0.30.0100.02615.88
7.0.20.0070.01515.77
7.0.10.0030.02715.65
7.0.00.0060.02915.65
5.6.400.0090.00514.47
5.6.390.0080.00814.47
5.6.380.0060.00914.56
5.6.370.0060.00914.46
5.6.360.0040.00814.25
5.6.350.0080.00514.48
5.6.340.0040.00814.41
5.6.330.0020.01314.34
5.6.320.0090.00614.50
5.6.310.0080.00614.52
5.6.300.0090.00714.53
5.6.290.0050.00714.39
5.6.280.0030.03116.40
5.6.270.0070.00514.31
5.6.260.0140.00014.49
5.6.250.0060.00914.40
5.6.240.0040.01114.30
5.6.230.0040.01916.43
5.6.220.0040.03316.47
5.6.210.0100.02616.49
5.6.200.0030.02416.70
5.6.190.0050.02116.57
5.6.180.0090.01516.58
5.6.170.0020.02016.56
5.6.160.0040.02116.56
5.6.150.0070.02216.59
5.6.140.0060.02416.68
5.6.130.0080.03016.61
5.6.120.0050.01916.54
5.6.110.0030.03116.52
5.6.100.0040.02816.64
5.6.90.0080.02716.64
5.6.80.0080.02416.32
5.6.70.0090.02916.44
5.6.60.0030.02016.46
5.6.50.0030.01916.41
5.6.40.0070.02916.27
5.6.30.0030.03716.38
5.6.20.0090.01616.44
5.6.10.0090.03116.35
5.6.00.0050.02616.35
5.5.380.0070.00614.27
5.5.370.0040.02716.40
5.5.360.0020.02616.46
5.5.350.0060.03116.14
5.5.340.0040.03116.56
5.5.330.0060.02716.46
5.5.320.0060.01816.57
5.5.310.0050.03616.46
5.5.300.0030.03516.69
5.5.290.0020.02616.62
5.5.280.0060.02616.60
5.5.270.0040.02216.42
5.5.260.0080.01816.44
5.5.250.0070.01616.49
5.5.240.0050.01816.35
5.5.230.0080.01716.25
5.5.220.0110.01916.07
5.5.210.0070.03416.23
5.5.200.0040.02016.19
5.5.190.0070.02016.22
5.5.180.0040.03316.25
5.5.170.0000.01314.12
5.5.160.0120.02516.22
5.5.150.0040.02016.20
5.5.140.0060.01716.23
5.5.130.0070.03016.31
5.5.120.0050.01916.20
5.5.110.0060.01816.31
5.5.100.0030.02216.24
5.5.90.0050.01716.33
5.5.80.0070.02916.22
5.5.70.0050.02416.25
5.5.60.0040.03416.17
5.5.50.0050.01516.22
5.5.40.0090.02816.04
5.5.30.0080.02816.15
5.5.20.0060.01816.32
5.5.10.0040.02016.26
5.5.00.0070.03216.24
5.4.450.0090.01513.88
5.4.440.0070.01713.88
5.4.430.0090.01513.91
5.4.420.0050.03013.86
5.4.410.0040.01713.79
5.4.400.0060.02713.69
5.4.390.0040.03113.70
5.4.380.0050.01613.74
5.4.370.0070.02713.73
5.4.360.0020.03013.64
5.4.350.0090.02913.79
5.4.340.0020.01813.72
5.4.330.0030.00610.90
5.4.320.0040.01513.79
5.4.310.0070.01513.65
5.4.300.0060.01513.86
5.4.290.0060.01313.66
5.4.280.0040.02913.77
5.4.270.0020.02513.69
5.4.260.0070.03013.75
5.4.250.0060.01413.68
5.4.240.0080.02513.72
5.4.230.0060.02613.64
5.4.220.0050.03113.54
5.4.210.0050.02613.76
5.4.200.0040.01713.69
5.4.190.0020.01913.52
5.4.180.0070.02713.61
5.4.170.0040.01413.68
5.4.160.0030.01813.65
5.4.150.0050.01713.63
5.4.140.0050.01512.75
5.4.130.0020.01412.87
5.4.120.0060.01612.79
5.4.110.0030.01812.89
5.4.100.0080.02912.81
5.4.90.0090.02112.81
5.4.80.0040.02912.81
5.4.70.0040.02712.82
5.4.60.0010.03012.80
5.4.50.0040.02012.88
5.4.40.0030.01812.81
5.4.30.0030.02012.83
5.4.20.0030.02012.86
5.4.10.0030.01712.86
5.4.00.0050.01812.66
5.3.290.0060.01411.98
5.3.280.0060.03011.85
5.3.270.0060.02711.83
5.3.260.0010.02211.95
5.3.250.0040.01711.95
5.3.240.0030.01311.83
5.3.230.0030.02911.86
5.3.220.0030.02311.75
5.3.210.0020.01711.63
5.3.200.0040.01511.77
5.3.190.0030.02911.88
5.3.180.0020.02911.87
5.3.170.0050.02411.83
5.3.160.0060.02111.89
5.3.150.0050.01711.86
5.3.140.0020.01811.92
5.3.130.0040.01611.80
5.3.120.0050.02111.87
5.3.110.0030.03011.81
5.3.100.0050.01411.67
5.3.90.0000.01711.65
5.3.80.0050.02111.55
5.3.70.0050.02311.55
5.3.60.0020.02211.62
5.3.50.0040.02911.57
5.3.40.0030.02711.62
5.3.30.0040.01411.63
5.3.20.0040.02811.59
5.3.10.0020.02311.42
5.3.00.0010.02111.46
5.2.170.0030.02313.98
5.2.160.0000.03313.98
5.2.150.0000.02713.98
5.2.140.0000.05313.98
5.2.130.0070.06313.98
5.2.120.0030.02313.98
5.2.110.0070.06013.98
5.2.100.0030.05013.98
5.2.90.0130.05313.98
5.2.80.0030.05313.98
5.2.70.0030.03013.98
5.2.60.0070.02013.98
5.2.50.0030.03013.98
5.2.40.0000.03013.98
5.2.30.0070.05713.98
5.2.20.0000.02713.98
5.2.10.0000.04713.98
5.2.00.0070.02013.98
5.1.60.0000.02313.98
5.1.50.0030.05313.98
5.1.40.0000.02713.98
5.1.30.0100.01713.98
5.1.20.0000.02313.98
5.1.10.0130.04713.98
5.1.00.0000.03313.98
5.0.50.0070.04713.98
5.0.40.0030.04313.98
5.0.30.0000.05313.98
5.0.20.0030.04313.98
5.0.10.0000.04713.98
5.0.00.0030.04713.98
4.4.90.0000.03313.98
4.4.80.0000.02313.98
4.4.70.0000.01713.98
4.4.60.0070.01713.98
4.4.50.0070.03013.98
4.4.40.0000.05713.98
4.4.30.0000.02313.98
4.4.20.0000.02313.98
4.4.10.0000.03013.98
4.4.00.0030.05713.98
4.3.110.0030.02713.98
4.3.100.0030.03013.98
4.3.90.0000.02313.98
4.3.80.0000.02013.98
4.3.70.0000.03713.98
4.3.60.0070.01013.98
4.3.50.0070.01013.98
4.3.40.0000.05713.98
4.3.30.0000.03313.98
4.3.20.0030.03313.98
4.3.10.0030.02313.98
4.3.00.0000.02013.98

preferences:
44.57 ms | 406 KiB | 5 Q