3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml='<workout_file> <workout> <FreeRide Duration="300" Power="1.3"/> <SteadyState Duration="300" Power="0.55"/> <FreeRide Duration="10" Power="1.2"/> <SteadyState Duration="180" Power="0.55"/> <FreeRide Duration="10" Power="1.1"/> <SteadyState Duration="120" Power="0.55"/> </workout> </workout_file>'; $xml=simplexml_load_string($xml); $count = 0; foreach($xml->workout->children() as $node ){ $type = $node->getName(); echo $type." position: ".$count."<br>"; $count++; //Get Attributes echo "Duration: ".$node['Duration']."<br>"; echo "Power: ".$node['Power']."<br>"; }

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.120.0120.00919.82
8.4.110.0130.00718.18
8.4.100.0110.01018.25
8.4.90.0110.00920.89
8.4.80.0150.00519.21
8.4.70.0130.00522.46
8.4.60.0130.00818.99
8.4.50.0120.00818.73
8.4.40.0140.00718.04
8.4.30.0060.01220.61
8.4.20.0100.01022.63
8.4.10.0080.00022.68
8.3.250.0120.00816.93
8.3.240.0140.00416.88
8.3.230.0120.00716.82
8.3.220.0040.00519.01
8.3.210.0080.01116.75
8.3.200.0060.00416.72
8.3.190.0040.00517.50
8.3.180.0050.00416.84
8.3.170.0100.00619.13
8.3.160.0040.00420.25
8.3.150.0060.01216.75
8.3.140.0110.00717.28
8.3.130.0040.00418.52
8.3.120.0060.00319.08
8.3.110.0030.00616.75
8.3.100.0040.00416.87
8.3.90.0040.00426.77
8.3.80.0000.00919.36
8.3.70.0090.00616.88
8.3.60.0080.00818.68
8.3.50.0150.00524.52
8.3.40.0030.01319.10
8.3.30.0070.00718.82
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0060.00326.16
8.2.290.0070.00116.95
8.2.280.0120.00818.44
8.2.270.0000.00917.54
8.2.260.0140.00418.68
8.2.250.0120.00617.24
8.2.240.0080.01118.86
8.2.230.0130.00720.94
8.2.220.0040.00424.06
8.2.210.0130.00626.77
8.2.200.0030.00618.88
8.2.190.0090.00618.64
8.2.180.0120.00625.92
8.2.170.0110.00419.25
8.2.160.0100.00322.96
8.2.150.0070.00025.66
8.2.140.0070.00024.66
8.2.130.0100.01026.16
8.2.120.0000.00819.61
8.2.110.0030.00622.40
8.2.100.0000.01119.91
8.2.90.0050.00318.00
8.2.80.0060.00318.95
8.2.70.0040.00417.88
8.2.60.0040.00417.88
8.2.50.0000.00818.05
8.2.40.0000.00718.41
8.2.30.0060.00318.46
8.2.20.0050.00218.46
8.2.10.0050.00219.55
8.2.00.0080.00019.54
8.1.330.0120.00716.25
8.1.320.0100.01016.23
8.1.310.0070.01018.70
8.1.300.0000.01018.15
8.1.290.0030.00630.84
8.1.280.0040.01125.92
8.1.270.0090.00024.00
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0060.00321.09
8.1.230.0080.00317.83
8.1.220.0030.00518.04
8.1.210.0050.00318.77
8.1.200.0050.00317.60
8.1.190.0030.00517.55
8.1.180.0030.00618.10
8.1.170.0040.00418.91
8.1.160.0030.00618.99
8.1.150.0040.00419.07
8.1.140.0040.00420.89
8.1.130.0060.00317.69
8.1.120.0050.00317.58
8.1.110.0030.00617.77
8.1.100.0040.00417.71
8.1.90.0040.00417.53
8.1.80.0020.00517.60
8.1.70.0040.00417.75
8.1.60.0090.00017.83
8.1.50.0050.00317.55
8.1.40.0030.00517.64
8.1.30.0000.00817.82
8.1.20.0060.00317.78
8.1.10.0000.00917.77
8.1.00.0080.00017.80
8.0.300.0080.00018.96
8.0.290.0050.00316.88
8.0.280.0030.00320.47
8.0.270.0040.00418.23
8.0.260.0000.00817.02
8.0.250.0000.00717.24
8.0.240.0050.00317.26
8.0.230.0040.00417.06
8.0.220.0030.00317.16
8.0.210.0000.00716.98
8.0.200.0000.00717.10
8.0.190.0000.00717.03
8.0.180.0000.00817.20
8.0.170.0080.00017.25
8.0.160.0040.00417.00
8.0.150.0040.00417.12
8.0.140.0050.00317.15
8.0.130.0000.00613.63
8.0.120.0000.00717.18
8.0.110.0050.00317.14
8.0.100.0040.00417.06
8.0.90.0000.00817.04
8.0.80.0070.01017.09
8.0.70.0000.00817.04
8.0.60.0040.00416.98
8.0.50.0040.00416.99
8.0.30.0070.01017.14
8.0.20.0100.01017.30
8.0.10.0040.00417.34
8.0.00.0170.00716.95
7.4.330.0000.00615.55
7.4.320.0030.00316.73
7.4.300.0040.00416.70
7.4.290.0000.00716.73
7.4.280.0040.00416.64
7.4.270.0030.00316.74
7.4.260.0030.00313.50
7.4.250.0050.00216.76
7.4.240.0000.00716.82
7.4.230.0040.00416.59
7.4.220.0020.00516.88
7.4.210.0050.00916.83
7.4.200.0040.00416.55
7.4.130.0100.01216.70
7.4.120.0090.01216.88
7.4.110.0080.00816.83
7.4.100.0150.00416.83
7.4.90.0230.02316.68
7.4.80.0110.00716.79
7.4.70.0130.00616.82
7.4.60.0260.01416.77
7.4.50.0140.00716.88
7.4.40.0090.00916.89
7.4.30.0390.01816.72
7.4.20.0130.00616.81
7.4.10.0030.01416.81
7.4.00.0110.01116.72
7.3.330.0030.00316.63
7.3.320.0050.00013.20
7.3.310.0040.00416.63
7.3.300.0070.00016.51
7.3.290.0090.01116.49
7.3.280.0030.01216.51
7.3.260.0110.00616.67
7.3.230.0110.00716.50
7.3.210.0360.01016.75
7.3.200.0030.01616.56
7.3.190.0190.01616.81
7.3.180.0160.01016.76
7.3.170.0080.01316.43
7.3.160.0110.00716.60
7.3.150.0120.00616.48
7.3.140.0080.00816.74
7.3.130.0070.01316.59
7.3.120.0110.00616.66
7.3.110.0030.01316.68
7.3.100.0000.01816.82
7.3.90.0060.01216.58
7.3.80.0200.01316.64
7.3.70.0120.00416.78
7.3.60.0110.01016.64
7.3.50.0150.00316.63
7.3.40.0060.01216.60
7.3.30.0090.01216.59
7.3.20.0300.01016.51
7.3.10.0090.00916.54
7.3.00.0090.01516.55
7.2.330.0310.02016.80
7.2.320.0150.00916.91
7.2.310.0150.01416.77
7.2.300.0110.00716.98
7.2.290.0060.01216.70
7.2.280.0030.02017.05
7.2.270.0120.00616.69
7.2.260.0130.00917.02
7.2.250.0090.00916.88
7.2.240.0120.00616.75
7.2.230.0090.00916.91
7.2.220.0090.00916.96
7.2.210.0190.00916.73
7.2.200.0180.00316.75
7.2.190.0160.00616.91
7.2.180.0160.00216.74
7.2.170.0090.01316.80
7.2.160.0140.00416.98
7.2.150.0070.01316.99
7.2.140.0070.01016.73
7.2.130.0100.01416.93
7.2.120.0220.00316.91
7.2.110.0110.01416.96
7.2.100.0060.01216.84
7.2.90.0070.01116.93
7.2.80.0110.00716.93
7.2.70.0450.01316.83
7.2.60.0110.00816.71
7.2.50.0160.00316.69
7.2.40.0100.00716.89
7.2.30.0160.00416.90
7.2.20.0140.01016.89
7.2.10.0280.02216.86
7.2.00.0060.01216.90

preferences:
32.95 ms | 403 KiB | 5 Q