3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> </head> <body> <form method="post"> <textarea name="data" style="width: 100%; height: 300px"></textarea> <input type="submit"> </form> <?php $data = isset($_POST['data']) ? $_POST['data'] : ""; if ($data) { function parse($text) { global $foundName; global $foundCoord; $foundName = array(); $foundCoord = array(); preg_replace_callback('#\<Placemark (.+?)\<\/name\>#msi', function($matches) { global $foundName; $ex = explode(">", $matches[1]); $foundName[] = end($ex); } , $text); preg_replace_callback('#\<coordinates\>(.+?)\<\/coordinates\>#msi', function($matches) { global $foundCoord; $foundCoord[] = $matches[1]; } , $text); return array("name" => $foundName, "coord" => $foundCoord);; } $d = parse($data); $res = ""; $counter = 0; foreach($d['name'] as $k => $v) { $name = $v; $point = explode(",", (string) $d['coord'][$k]); $out = "GMSMarker*marker" . $counter ++ . "= [[GMSMarker alloc] init]; \n"; $out .= "marker" . $counter . ".position = CLLocationCoordinate2DMake(" . $point[1] . "," . $point[0] ."); \n"; $out .= "marker" . $counter . ".title = @\"" . $name . "\"; \n"; $out .= "marker" . $counter . ".map = mapView_; \n"; $out .= "marker" . $counter . ".icon = [UIImage imageNamed:@\"wc.png\"]; \n \n"; $res .= $out; } echo '<textarea style="width:500px; height: 300px">' . $res . '</textarea>'; } ?> </body> </html>

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.00718.18
8.3.50.0240.00621.92
8.3.40.0090.00618.79
8.3.30.0040.01219.19
8.3.20.0050.00320.25
8.3.10.0090.00023.34
8.3.00.0040.00419.38
8.2.180.0140.00418.17
8.2.170.0070.00722.96
8.2.160.0070.00720.16
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00421.87
8.2.110.0070.00319.24
8.2.100.0090.00317.97
8.2.90.0040.00419.29
8.2.80.0000.00817.97
8.2.70.0030.00617.75
8.2.60.0090.00017.68
8.2.50.0040.00818.07
8.2.40.0000.00920.07
8.2.30.0000.00818.27
8.2.20.0080.00017.77
8.2.10.0030.00518.21
8.2.00.0000.00717.82
8.1.280.0070.01425.92
8.1.270.0030.00523.83
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00321.27
8.1.230.0080.00317.52
8.1.220.0000.00917.77
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0030.00517.35
8.1.180.0100.00018.10
8.1.170.0040.00418.39
8.1.160.0000.00722.03
8.1.150.0040.00418.71
8.1.140.0070.00017.41
8.1.130.0080.00017.81
8.1.120.0000.00717.38
8.1.110.0050.00217.47
8.1.100.0040.00317.48
8.1.90.0040.00417.39
8.1.80.0040.00417.44
8.1.70.0000.00717.40
8.1.60.0100.00017.49
8.1.50.0040.00417.50
8.1.40.0080.00017.48
8.1.30.0030.00617.66
8.1.20.0050.00317.65
8.1.10.0000.00717.50
8.1.00.0050.00217.43
8.0.300.0040.00418.77
8.0.290.0060.00316.75
8.0.280.0040.00418.39
8.0.270.0070.00017.22
8.0.260.0030.00317.23
8.0.250.0000.00716.98
8.0.240.0030.00317.09
8.0.230.0070.00016.92
8.0.220.0070.00016.80
8.0.210.0050.00316.91
8.0.200.0030.00316.96
8.0.190.0050.00216.97
8.0.180.0030.00517.01
8.0.170.0000.00816.95
8.0.160.0000.00716.87
8.0.150.0070.00016.84
8.0.140.0040.00416.94
8.0.130.0030.00313.43
8.0.120.0000.00816.86
8.0.110.0050.00316.96
8.0.100.0030.00716.93
8.0.90.0040.00416.97
8.0.80.0090.00616.91
8.0.70.0000.00716.77
8.0.60.0040.00416.82
8.0.50.0080.00016.73
8.0.30.0090.00917.10
8.0.20.0130.00517.40
8.0.10.0040.00417.03
8.0.00.0070.01116.73
7.4.330.0060.00015.12
7.4.320.0040.00416.62
7.4.300.0060.00016.50
7.4.290.0070.00316.64
7.4.280.0040.00416.61
7.4.270.0030.00516.65
7.4.260.0000.00716.60
7.4.250.0030.00616.60
7.4.240.0020.00516.55
7.4.230.0040.00416.38
7.4.220.0130.00316.56
7.4.210.0080.00816.59
7.4.200.0030.00316.54
7.4.190.0040.00316.50
7.4.160.0060.00916.44
7.4.150.0210.00317.40
7.4.140.0110.00917.86
7.4.130.0110.00616.65
7.4.120.0120.00416.52
7.4.110.0110.01216.68
7.4.100.0090.00916.50
7.4.90.0090.00916.58
7.4.80.0060.01419.39
7.4.70.0100.00716.42
7.4.60.0090.00916.47
7.4.50.0040.00416.25
7.4.40.0060.01016.41
7.4.30.0110.00516.59
7.4.00.0030.01214.82
7.3.330.0030.00313.32
7.3.320.0080.00013.15
7.3.310.0000.00816.05
7.3.300.0060.00016.16
7.3.290.0090.00716.29
7.3.280.0100.00916.27
7.3.270.0060.01117.40
7.3.260.0090.00816.36
7.3.250.0100.00816.28
7.3.240.0060.01716.24
7.3.230.0070.01016.39
7.3.210.0070.01016.45
7.3.200.0060.01019.39
7.3.190.0150.00916.32
7.3.180.0090.00616.21
7.3.170.0080.00816.45
7.3.160.0170.00016.47
7.3.120.0040.01214.76
7.3.10.0000.01216.44
7.3.00.0080.00316.25
7.2.330.0090.00916.47
7.2.320.0060.01316.59
7.2.310.0120.00616.69
7.2.300.0110.00616.67
7.2.290.0090.00916.83
7.2.130.0100.00317.02
7.2.120.0090.00616.91
7.2.110.0060.00616.41
7.2.100.0060.00916.95
7.2.90.0090.00617.02
7.2.80.0030.00716.89
7.2.70.0070.00416.49
7.2.60.0110.00316.84
7.2.50.0070.00716.70
7.2.40.0040.00816.60
7.2.30.0090.00616.51
7.2.20.0040.01216.43
7.2.10.0000.01616.50
7.2.00.0070.00818.16
7.1.250.0070.00715.83
7.1.100.0120.00617.71
7.1.70.0070.00316.86
7.1.60.0100.01319.46
7.1.50.0140.02534.39
7.1.00.0170.06322.37
7.0.200.0090.00016.91
7.0.140.0030.07322.16
7.0.60.0070.08319.95
7.0.50.0100.08318.00
7.0.40.0100.07020.04
7.0.30.0270.07720.28
7.0.20.0270.05020.23
7.0.10.0070.07720.06
7.0.00.0030.04320.26
5.6.280.0000.07721.12
5.6.210.0200.07020.47
5.6.200.0100.05718.19
5.6.190.0130.05720.64
5.6.180.0400.06320.52
5.6.170.0130.04320.53
5.6.160.0000.04320.46
5.6.150.0170.06718.20
5.6.140.0000.08718.21
5.6.130.0070.07718.17
5.6.120.0100.04021.14
5.6.110.0070.06321.13
5.6.100.0070.05321.14
5.6.90.0000.05321.02
5.6.80.0100.07720.39
5.5.350.0270.06320.45
5.5.340.0070.08017.95
5.5.330.0100.07720.37
5.5.320.0400.05720.35
5.5.310.0330.04720.27
5.5.300.0100.03318.08
5.5.290.0130.07317.95
5.5.280.0100.08020.69
5.5.270.0100.08020.65
5.5.260.0000.04720.81
5.5.250.0200.07020.70
5.5.240.0030.08320.39
5.4.450.0670.06719.56
5.4.440.0930.07319.55
5.4.430.0100.05719.41
5.4.420.0130.05319.46
5.4.410.0170.04719.07
5.4.400.0030.05718.89
5.4.390.0030.05718.51
5.4.380.0200.04318.74
5.4.370.0100.03318.84
5.4.360.0000.04718.58
5.4.350.0080.03112.04
5.4.340.0030.03812.04
5.4.320.0100.03212.52
5.4.310.0060.03912.52
5.4.300.0080.03512.52
5.4.290.0050.04012.52
5.4.280.0060.03912.42
5.4.270.0080.03612.41
5.4.260.0090.03612.41
5.4.250.0080.04512.41
5.4.240.0080.04412.41
5.4.230.0180.05112.41
5.4.220.0070.04712.41
5.4.210.0090.04112.40
5.4.200.0050.04112.41
5.4.190.0080.03512.40
5.4.180.0070.04412.40
5.4.170.0120.03912.41
5.4.160.0070.04212.41
5.4.150.0100.04612.40
5.4.140.0100.03512.09
5.4.130.0050.03812.08
5.4.120.0060.03712.03
5.4.110.0060.04212.03
5.4.100.0180.04712.02
5.4.90.0070.04012.03
5.4.80.0160.03312.03
5.4.70.0090.04912.02
5.4.60.0080.04812.02
5.4.50.0040.05212.03
5.4.40.0120.04712.02
5.4.30.0080.04512.01
5.4.20.0080.06712.01
5.4.10.0080.03612.01
5.4.00.0070.03511.50
5.3.290.0050.04112.80
5.3.280.0060.04112.70
5.3.270.0070.06612.73
5.3.260.0100.05212.72
5.3.250.0080.04412.72
5.3.240.0100.03512.72
5.3.230.0030.05512.71
5.3.220.0090.05212.68
5.3.210.0080.05512.68
5.3.200.0080.05312.68
5.3.190.0080.04412.67
5.3.180.0110.04012.68
5.3.170.0130.05312.67
5.3.160.0090.04112.68
5.3.150.0120.05512.68
5.3.140.0140.06112.66
5.3.130.0080.06112.66
5.3.120.0130.05312.66
5.3.110.0070.06212.66
5.3.100.0090.05112.13
5.3.90.0070.04412.13
5.3.80.0070.06912.11
5.3.70.0130.04512.11
5.3.60.0160.08912.09
5.3.50.0090.04312.05
5.3.40.0060.04112.04
5.3.30.0050.04312.00
5.3.20.0070.04211.79
5.3.10.0100.05111.75
5.3.00.0080.05411.73
5.2.170.0110.0479.23
5.2.160.0130.0519.23
5.2.150.0080.0439.23
5.2.140.0080.0499.23
5.2.130.0060.0369.19
5.2.120.0070.0309.19
5.2.110.0050.0319.18
5.2.100.0060.0309.18
5.2.90.0050.0379.18
5.2.80.0090.0289.17
5.2.70.0040.0339.18
5.2.60.0040.0349.13
5.2.50.0050.0309.10
5.2.40.0070.0279.08
5.2.30.0050.0319.05
5.2.20.0060.0299.04
5.2.10.0060.0288.94
5.2.00.0090.0328.82
5.1.60.0070.0338.10
5.1.50.0100.0308.10
5.1.40.0060.0288.08
5.1.30.0060.0278.42
5.1.20.0070.0278.45
5.1.10.0030.0308.18
5.1.00.0040.0318.18
5.0.50.0030.0246.65
5.0.40.0010.0246.52
5.0.30.0080.0306.32
5.0.20.0080.0176.28
5.0.10.0060.0196.27
5.0.00.0030.0366.26
4.4.90.0050.0324.77
4.4.80.0000.0224.76
4.4.70.0070.0274.75
4.4.60.0080.0164.75
4.4.50.0030.0174.77
4.4.40.0060.0474.71
4.4.30.0030.0244.76
4.4.20.0040.0204.84
4.4.10.0050.0234.85
4.4.00.0020.0304.76
4.3.110.0050.0244.67
4.3.100.0030.0234.66
4.3.90.0040.0244.63
4.3.80.0080.0464.59
4.3.70.0040.0144.63
4.3.60.0050.0454.63
4.3.50.0150.0334.63
4.3.40.0070.0314.54
4.3.30.0050.0303.30
4.3.20.0010.0183.28
4.3.10.0020.0163.24
4.3.00.0170.0206.67

preferences:
39.7 ms | 401 KiB | 5 Q