3v4l.org

run code in 300+ PHP versions simultaneously
<?php $weather = array("晴れ", "晴れ時々雨", "雪のち雨"); $ary = array( "晴れ" => "sunny", "雨" => "rainy", "曇" => "cloudy", "雪" => "snowy", "のち" => "later", "時々" => "and" ); for ($i=0; $i < 3; $i++) { //$telop = $weather->forecasts[$i]->telop; $telop = $weather[$i]; foreach ($ary as $key => $value) { str_replace((string)$key, $ary[$key], $telop); echo $ary[$key]; } echo $telop; }

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.0040.01118.55
8.3.50.0110.00621.21
8.3.40.0110.00718.85
8.3.30.0070.00720.23
8.3.20.0070.00020.28
8.3.10.0040.00421.27
8.3.00.0080.00022.29
8.2.180.0070.00716.63
8.2.170.0140.00722.96
8.2.160.0100.00722.20
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00320.82
8.2.110.0090.00020.39
8.2.100.0070.00417.78
8.2.90.0040.00419.17
8.2.80.0060.00317.97
8.2.70.0000.00917.63
8.2.60.0060.00318.03
8.2.50.0050.00318.07
8.2.40.0040.00418.28
8.2.30.0030.00519.43
8.2.20.0040.00417.64
8.2.10.0000.00717.81
8.2.00.0030.00717.61
8.1.280.0110.00425.92
8.1.270.0030.00623.99
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0070.00323.91
8.1.230.0060.00623.88
8.1.220.0040.00417.79
8.1.210.0000.00818.77
8.1.200.0030.00617.36
8.1.190.0050.00317.35
8.1.180.0050.00318.10
8.1.170.0040.00418.55
8.1.160.0000.00718.81
8.1.150.0050.00218.63
8.1.140.0070.00017.36
8.1.130.0030.00317.88
8.1.120.0060.00617.50
8.1.110.0000.00817.42
8.1.100.0040.00417.34
8.1.90.0040.00417.42
8.1.80.0060.00317.41
8.1.70.0070.00017.40
8.1.60.0000.00917.59
8.1.50.0040.00417.40
8.1.40.0080.00017.53
8.1.30.0040.00417.61
8.1.20.0040.00417.65
8.1.10.0040.00417.59
8.1.00.0000.00817.48
8.0.300.0000.00718.77
8.0.290.0030.00716.75
8.0.280.0060.00318.45
8.0.270.0040.00417.25
8.0.260.0030.00316.89
8.0.250.0060.00016.94
8.0.240.0040.00416.96
8.0.230.0100.00016.88
8.0.220.0040.00416.86
8.0.210.0030.00316.85
8.0.200.0000.00616.92
8.0.190.0040.00316.81
8.0.180.0040.00416.94
8.0.170.0030.00316.85
8.0.160.0000.00716.95
8.0.150.0070.00016.70
8.0.140.0000.00716.74
8.0.130.0030.00313.34
8.0.120.0040.00416.88
8.0.110.0000.00716.81
8.0.100.0040.00416.67
8.0.90.0040.00416.80
8.0.80.0060.00916.89
8.0.70.0040.00416.93
8.0.60.0040.00416.93
8.0.50.0030.00516.82
8.0.30.0090.01017.05
8.0.20.0080.01117.40
8.0.10.0040.00417.00
8.0.00.0070.01116.81
7.4.330.0060.00016.66
7.4.320.0040.00416.50
7.4.300.0030.00316.39
7.4.290.0000.00716.66
7.4.280.0070.00016.58
7.4.270.0030.00316.66
7.4.260.0050.00013.17
7.4.250.0050.00216.59
7.4.240.0060.00216.57
7.4.230.0030.00316.50
7.4.220.0150.00616.61
7.4.210.0070.00916.53
7.4.200.0050.00216.50
7.4.190.0000.00816.76
7.4.160.0120.00916.56
7.4.150.0090.00917.40
7.4.140.0140.00717.86
7.4.130.0080.00916.55
7.4.120.0100.00716.56
7.4.110.0070.01016.55
7.4.100.0100.00716.61
7.4.90.0100.00716.51
7.4.80.0160.00019.39
7.4.70.0150.00316.56
7.4.60.0120.01216.49
7.4.50.0060.00316.52
7.4.40.0060.01022.77
7.4.30.0170.00016.44
7.4.00.0030.01014.90
7.3.330.0020.00213.11
7.3.320.0060.00013.17
7.3.310.0000.00716.09
7.3.300.0030.00316.30
7.3.290.0080.00516.29
7.3.280.0080.00816.30
7.3.270.0080.00817.40
7.3.260.0050.01218.24
7.3.250.0070.00916.33
7.3.240.0100.00716.57
7.3.230.0130.00316.39
7.3.210.0110.00716.30
7.3.200.0080.01619.39
7.3.190.0150.00616.36
7.3.180.0120.00916.32
7.3.170.0090.00616.66
7.3.160.0060.01716.48
7.3.120.0110.00414.75
7.2.330.0060.01216.44
7.2.320.0060.01616.77
7.2.310.0070.01416.70
7.2.300.0050.01316.57
7.2.290.0080.01516.52
7.2.60.0000.01116.86
7.2.00.0000.01019.30
7.1.200.0030.00715.82
7.1.100.0030.01018.22
7.1.70.0090.00316.90
7.1.60.0100.01419.17
7.1.50.0140.01016.91
7.1.00.0130.06322.40
7.0.200.0040.00816.61
7.0.140.0000.07021.95
7.0.80.0170.07319.98
7.0.70.0400.05019.86
7.0.60.0000.05319.93
7.0.50.0470.06020.30
7.0.40.0070.04020.18
7.0.30.0170.06720.04
7.0.20.0100.07720.05
7.0.10.0170.05320.10
7.0.00.0030.05320.05
5.6.280.0000.07321.09
5.6.230.0100.07720.68
5.6.220.0030.08720.58
5.6.210.0030.05020.68
5.6.200.0070.08320.95
5.6.190.0130.03721.05
5.6.180.0070.08321.03
5.6.170.0100.07321.07
5.6.160.0100.04020.93
5.6.150.0100.04320.96
5.6.140.0000.04720.95
5.6.130.0070.05021.07
5.6.120.0070.04321.01
5.6.110.0100.03721.01
5.6.100.0000.04021.05
5.6.90.0030.08020.98
5.6.80.0100.05720.46
5.6.70.0030.03720.41
5.6.60.0030.03720.38
5.6.50.0000.04720.39
5.6.40.0070.05020.40
5.6.30.0030.04020.38
5.6.20.0030.04020.37
5.6.10.0000.04320.43
5.6.00.0030.04320.29
5.5.370.0130.05020.50
5.5.360.0200.06720.34
5.5.350.0030.08320.43
5.5.340.0130.07720.89
5.5.330.0000.05320.92
5.5.320.0100.07320.88
5.5.310.0130.07320.82
5.5.300.0000.05720.73
5.5.290.0070.04720.72
5.5.280.0000.04720.88
5.5.270.0030.04020.79
5.5.260.0070.06320.89
5.5.250.0070.07020.54
5.5.240.0030.03720.18
5.5.230.0000.04020.25
5.5.220.0070.03320.29
5.5.210.0030.05720.02
5.5.200.0030.03720.22
5.5.190.0070.04320.23
5.5.180.0030.03720.26
5.5.160.0070.04020.28
5.5.150.0000.03720.14
5.5.140.0070.06320.25
5.5.130.0030.04320.14
5.5.120.0030.04320.15
5.5.110.0070.03320.17
5.5.100.0100.07320.10
5.5.90.0070.03320.05
5.5.80.0000.04319.98
5.5.70.0000.04320.05
5.5.60.0070.03319.93
5.5.50.0070.03020.05
5.5.40.0100.03020.05
5.5.30.0070.03720.14
5.5.20.0030.04720.15
5.5.10.0000.04319.97
5.5.00.0130.02719.96
5.4.450.0070.03719.44
5.4.440.0070.03719.11
5.4.430.0000.04019.21
5.4.420.0030.03319.46
5.4.410.0030.05319.16
5.4.400.0000.07319.03
5.4.390.0000.06319.05
5.4.380.0100.07018.79
5.4.370.0070.03318.81
5.4.360.0000.04019.12
5.4.350.0100.06318.90
5.4.340.0000.04018.98
5.4.320.0000.04319.06
5.4.310.0000.04318.81
5.4.300.0030.04019.05
5.4.290.0070.03719.12
5.4.280.0070.03319.05
5.4.270.0070.03318.90
5.4.260.0100.03319.11
5.4.250.0070.04019.12
5.4.240.0030.04019.08
5.4.230.0070.03318.97
5.4.220.0000.04319.12
5.4.210.0030.03719.09
5.4.200.0000.03719.22
5.4.190.0030.03719.02
5.4.180.0000.04019.05
5.4.170.0030.04719.04
5.4.160.0030.03718.88
5.4.150.0000.04019.12
5.4.140.0100.06016.30
5.4.130.0100.07016.22
5.4.120.0070.07716.22
5.4.110.0100.07016.48
5.4.100.0070.07316.26
5.4.90.0000.07716.21
5.4.80.0000.05716.39
5.4.70.0100.03716.43
5.4.60.0100.06016.34
5.4.50.0100.07016.42
5.4.40.0100.07316.47
5.4.30.0070.06716.22
5.4.20.0070.07016.20
5.4.10.0100.06716.18
5.4.00.0100.06015.75
5.3.290.0100.05314.53
5.3.280.0070.03314.58
5.3.270.0000.04014.46
5.3.260.0030.03314.46
5.3.250.0030.04014.59
5.3.240.0100.04714.46
5.3.230.0130.05714.57
5.3.220.0130.07014.42
5.3.210.0070.07714.57
5.3.200.0030.04714.52
5.3.190.0100.06314.52
5.3.180.0070.05314.42
5.3.170.0030.05014.47
5.3.160.0100.06314.54
5.3.150.0100.05014.42
5.3.140.0100.06014.41
5.3.130.0070.07714.50
5.3.120.0000.05314.40
5.3.110.0030.04714.41
5.3.100.0070.07014.03
5.3.90.0100.06013.98
5.3.80.0070.04713.87
5.3.70.0170.06713.98
5.3.60.0070.07013.96
5.3.50.0100.07313.93
5.3.40.0030.04013.85
5.3.30.0170.04313.90
5.3.20.0030.04313.53
5.3.10.0130.07013.60
5.3.00.0030.07313.53
5.2.170.0070.05013.53
5.2.160.0030.06313.53
5.2.150.0070.06013.53
5.2.140.0070.04713.53
5.2.130.0030.03313.53
5.2.120.0070.03313.53
5.2.110.0000.04713.53
5.2.100.0100.05713.53
5.2.90.0030.04313.53
5.2.80.0030.03713.53
5.2.70.0100.06313.53
5.2.60.0100.06013.53
5.2.50.0130.04013.53
5.2.40.0030.03313.53
5.2.30.0030.04713.53
5.2.20.0030.02713.53
5.2.10.0030.06713.53
5.2.00.0070.04313.53
5.1.60.0070.02313.53
5.1.50.0070.03713.53
5.1.40.0070.05313.53
5.1.30.0070.02713.53
5.1.20.0100.05013.53
5.1.10.0070.04713.53
5.1.00.0030.04313.53
5.0.50.0100.03713.53
5.0.40.0070.04013.53
5.0.30.0070.03013.53
5.0.20.0100.03713.53
5.0.10.0000.04013.53
5.0.00.0000.07013.53
4.4.90.0000.03713.53
4.4.80.0000.03713.53
4.4.70.0030.03013.53
4.4.60.0070.02713.53
4.4.50.0030.03313.53
4.4.40.0000.05313.53
4.4.30.0030.03313.53
4.4.20.0070.03313.53
4.4.10.0030.03013.53
4.4.00.0030.04313.53
4.3.110.0030.03313.53
4.3.100.0030.01713.53
4.3.90.0100.00713.53
4.3.80.0030.05313.53
4.3.70.0070.02013.53
4.3.60.0030.01713.53
4.3.50.0000.02013.53
4.3.40.0100.04313.53
4.3.30.0000.02713.53
4.3.20.0000.03313.53
4.3.10.0000.03713.53
4.3.00.0070.03013.53

preferences:
46.01 ms | 401 KiB | 5 Q