3v4l.org

run code in 300+ PHP versions simultaneously
<? $xml = simplexml_load_file(‘http://stocklamp.tumblr.com/api/read/xml’); $posts = $xml->xpath(“/tumblr/posts/post[@type=’regular’]”); foreach($posts as $post) {?> <?echo $post[‘id’];?> <?echo $post[‘url-with-slug’];?>”> <?echo $post->{‘regular-title’};?> <?echo $post->{‘regular-body’};?> <?echo date(“jS D M, H:i”,strtotime($post[‘date’]));?> <?}?>

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.0060.01218.43
8.3.50.0090.00821.20
8.3.40.0000.01518.71
8.3.30.0110.00418.59
8.3.20.0110.00018.51
8.3.10.0050.00320.54
8.3.00.0080.00021.60
8.2.180.0170.00316.38
8.2.170.0090.00622.96
8.2.160.0130.00020.43
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0030.00626.16
8.2.120.0040.00419.25
8.2.110.0040.00422.10
8.2.100.0040.00717.59
8.2.90.0050.00219.09
8.2.80.0000.00717.97
8.2.70.0030.00617.38
8.2.60.0030.00618.04
8.2.50.0030.00518.07
8.2.40.0050.00517.99
8.2.30.0040.00419.67
8.2.20.0040.00417.39
8.2.10.0000.00717.50
8.2.00.0000.00717.60
8.1.280.0110.00325.92
8.1.270.0140.00023.99
8.1.260.0090.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00422.34
8.1.230.0110.00020.94
8.1.220.0000.00818.77
8.1.210.0030.00618.84
8.1.200.0070.00317.09
8.1.190.0040.00417.40
8.1.180.0030.00618.10
8.1.170.0000.00918.54
8.1.160.0040.00418.74
8.1.150.0050.00218.49
8.1.140.0040.00417.22
8.1.130.0030.00317.68
8.1.120.0070.00017.35
8.1.110.0040.00417.37
8.1.100.0080.00017.34
8.1.90.0000.00717.20
8.1.80.0050.00217.21
8.1.70.0030.00317.30
8.1.60.0030.00517.44
8.1.50.0040.00417.35
8.1.40.0000.00817.41
8.1.30.0000.00717.46
8.1.20.0090.00017.48
8.1.10.0030.00517.45
8.1.00.0040.00417.37
8.0.300.0030.00319.90
8.0.290.0000.00717.05
8.0.280.0000.00718.27
8.0.270.0070.00017.19
8.0.260.0000.00616.74
8.0.250.0030.00516.76
8.0.240.0050.00316.72
8.0.230.0040.00416.77
8.0.220.0000.00716.80
8.0.210.0000.00716.65
8.0.200.0040.00416.82
8.0.190.0000.00816.82
8.0.180.0000.00716.84
8.0.170.0070.00016.73
8.0.160.0000.00816.86
8.0.150.0090.00016.68
8.0.140.0040.00416.71
8.0.130.0000.00813.31
8.0.120.0070.00016.74
8.0.110.0030.00516.61
8.0.100.0070.00016.81
8.0.90.0000.00716.82
8.0.80.0120.00416.78
8.0.70.0040.00416.61
8.0.60.0000.00716.75
8.0.50.0070.00016.75
8.0.30.0080.01316.94
8.0.20.0120.00717.40
8.0.10.0000.00716.82
8.0.00.0090.00916.65
7.4.330.0030.00314.68
7.4.320.0030.00316.46
7.4.300.0070.00016.36
7.4.290.0070.00016.42
7.4.280.0040.00416.34
7.4.270.0030.00316.41
7.4.260.0060.00013.25
7.4.250.0040.00416.43
7.4.240.0050.00316.42
7.4.230.0000.00716.52
7.4.220.0100.00716.36
7.4.210.0060.00916.43
7.4.200.0070.00016.43
7.4.190.0030.00316.32
7.4.160.0100.01016.27
7.4.150.0050.01417.40
7.4.140.0030.01517.86
7.4.130.0090.00816.41
7.4.120.0080.01016.33
7.4.110.0030.01716.19
7.4.100.0130.01016.34
7.4.90.0150.00916.44
7.4.80.0060.01519.37
7.4.70.0090.00916.27
7.4.60.0090.00916.47
7.4.50.0000.00816.25
7.4.40.0060.00822.27
7.4.30.0250.00016.40
7.3.330.0030.00313.28
7.3.320.0000.00613.07
7.3.310.0070.00016.19
7.3.300.0020.00516.13
7.3.290.0100.00316.18
7.3.280.0070.00716.08
7.3.270.0100.00717.40
7.3.260.0130.00818.24
7.3.250.0140.00516.18
7.3.240.0130.00416.15
7.3.230.0120.00316.39
7.3.210.0130.00316.32
7.3.200.0100.00719.39
7.3.190.0160.00616.36
7.3.180.0110.00516.04
7.3.170.0110.00816.33
7.3.160.0060.00916.39
7.2.330.0060.01116.41
7.2.320.0070.01416.14
7.2.310.0110.01116.44
7.2.300.0100.00716.60
7.2.290.0080.00816.34
5.4.280.0500.06719.13
5.4.270.0400.03318.85
5.4.260.0500.06318.98
5.4.250.0370.04318.85
5.4.240.0530.06019.21
5.4.230.0470.07019.18
5.4.220.0500.06319.14
5.4.210.0470.04319.14
5.4.200.0500.06319.07
5.4.190.0430.05019.08
5.4.180.0430.06719.08
5.4.170.0370.06718.98
5.4.160.0570.05319.04
5.4.150.0430.04318.97
5.4.140.0430.06016.32
5.4.130.0370.06316.45
5.4.120.0330.07016.66
5.4.110.0300.05016.56
5.4.100.0400.06316.54
5.4.90.0400.05716.54
5.4.80.0500.04316.44
5.4.70.0430.03016.52
5.4.60.0500.04316.33
5.4.50.0470.06016.38
5.4.40.0430.03316.51
5.4.30.0330.04016.52
5.4.20.0470.05316.52
5.4.10.0470.03716.47
5.4.00.0370.03715.92
5.3.290.0530.06314.56
5.3.280.0470.03014.54
5.3.270.0300.04714.55
5.3.260.0500.06314.55
5.3.250.0600.03714.55
5.3.240.0370.03714.63
5.3.230.0400.05014.43
5.3.220.0400.05314.54
5.3.210.0500.03714.40
5.3.200.0400.06714.40
5.3.190.0430.06714.51
5.3.180.0400.07314.49
5.3.170.0470.05714.64
5.3.160.0530.06014.61
5.3.150.0400.04014.50
5.3.140.0570.05314.39
5.3.130.0600.06014.41
5.3.120.0470.03314.45
5.3.110.0530.06014.57
5.3.100.0570.06013.83
5.3.90.0400.03313.97
5.3.80.0330.04013.94
5.3.70.0530.06313.88
5.3.60.0500.04013.85
5.3.50.0370.05313.79
5.3.40.0470.07013.89
5.3.30.0400.04713.81
5.3.20.0400.06013.78
5.3.10.0530.06013.56
5.3.00.0500.06313.48

preferences:
42.22 ms | 401 KiB | 5 Q