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) { $telop = str_replace((string)$key, $ary[$key], $telop); } 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.0170.00318.56
8.3.50.0090.01021.02
8.3.40.0110.01118.63
8.3.30.0030.01020.29
8.3.20.0050.00220.39
8.3.10.0040.00421.08
8.3.00.0000.00822.44
8.2.180.0210.00016.38
8.2.170.0070.00722.96
8.2.160.0140.00021.99
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0080.00020.87
8.2.110.0050.00519.04
8.2.100.0040.00817.84
8.2.90.0040.00419.17
8.2.80.0060.00317.97
8.2.70.0030.00817.48
8.2.60.0040.00418.05
8.2.50.0050.00318.07
8.2.40.0040.00418.34
8.2.30.0000.00819.49
8.2.20.0040.00417.59
8.2.10.0040.00417.68
8.2.00.0060.00317.70
8.1.280.0140.00325.92
8.1.270.0050.00323.99
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0120.00922.54
8.1.230.0070.00420.89
8.1.220.0030.00618.77
8.1.210.0040.00419.04
8.1.200.0040.00717.35
8.1.190.0000.00817.52
8.1.180.0000.00818.10
8.1.170.0030.00518.59
8.1.160.0070.00018.84
8.1.150.0040.00418.58
8.1.140.0040.00417.46
8.1.130.0000.00717.77
8.1.120.0070.00317.48
8.1.110.0000.00717.36
8.1.100.0080.00017.46
8.1.90.0000.00717.39
8.1.80.0000.00717.38
8.1.70.0000.00817.43
8.1.60.0030.00717.48
8.1.50.0050.00317.52
8.1.40.0000.00817.42
8.1.30.0050.00317.49
8.1.20.0080.00017.61
8.1.10.0060.00317.54
8.1.00.0030.00517.52
8.0.300.0070.00020.02
8.0.290.0050.00217.05
8.0.280.0080.00018.38
8.0.270.0030.00517.25
8.0.260.0060.00016.88
8.0.250.0040.00416.83
8.0.240.0040.00416.84
8.0.230.0040.00416.92
8.0.220.0030.00316.93
8.0.210.0030.00316.86
8.0.200.0030.00316.86
8.0.190.0000.00716.97
8.0.180.0050.00316.93
8.0.170.0000.00816.90
8.0.160.0030.00316.78
8.0.150.0070.00016.79
8.0.140.0080.00016.91
8.0.130.0000.00513.36
8.0.120.0050.00316.85
8.0.110.0000.00716.93
8.0.100.0040.00417.00
8.0.90.0070.00016.75
8.0.80.0060.01016.89
8.0.70.0040.00416.84
8.0.60.0080.00016.94
8.0.50.0000.00716.79
8.0.30.0080.01017.04
8.0.20.0150.00517.40
8.0.10.0040.00417.03
8.0.00.0110.00916.74
7.4.330.0000.00416.69
7.4.320.0030.00316.55
7.4.300.0040.00416.45
7.4.290.0000.00716.57
7.4.280.0030.00316.52
7.4.270.0000.00716.63
7.4.260.0050.00013.34
7.4.250.0050.00316.46
7.4.240.0020.00516.56
7.4.230.0070.00016.59
7.4.220.0110.00716.58
7.4.210.0050.01116.55
7.4.200.0040.00416.51
7.4.190.0070.00016.40
7.4.160.0090.00616.52
7.4.150.0070.01017.40
7.4.140.0070.01017.86
7.4.130.0080.00916.52
7.4.120.0090.00816.50
7.4.110.0120.01216.50
7.4.100.0030.01316.54
7.4.90.0060.01116.50
7.4.80.0060.01119.39
7.4.70.0110.00616.45
7.4.60.0080.00816.51
7.4.50.0060.00316.35
7.4.40.0130.00322.77
7.4.30.0100.01016.30
7.4.00.0070.01014.84
7.3.330.0030.00313.00
7.3.320.0000.00512.98
7.3.310.0030.00316.15
7.3.300.0050.00216.14
7.3.290.0070.01016.29
7.3.280.0070.01016.26
7.3.270.0170.00017.40
7.3.260.0140.00618.24
7.3.250.0080.00816.47
7.3.240.0090.00916.28
7.3.230.0110.01116.44
7.3.210.0150.00316.39
7.3.200.0090.01419.39
7.3.190.0100.00716.58
7.3.180.0060.00916.55
7.3.170.0100.00716.36
7.3.160.0100.00616.40
7.3.120.0100.00314.44
7.2.330.0150.00416.60
7.2.320.0150.00816.63
7.2.310.0150.00616.61
7.2.300.0090.00916.34
7.2.290.0100.00716.56
7.2.60.0030.00517.07
7.1.200.0070.00415.61
7.1.70.0030.00717.09
7.1.60.0160.00319.17
7.1.50.0030.02116.98
7.1.00.0030.03322.47
7.0.200.0000.00916.91
7.0.140.0000.07722.09
7.0.100.0130.09319.89
7.0.90.0230.07319.89
7.0.80.0230.07319.98
7.0.70.0170.08319.89
7.0.60.0230.08019.95
7.0.50.0200.08720.12
7.0.40.0030.08020.05
7.0.30.0030.05320.14
7.0.20.0170.04020.08
7.0.10.0070.05019.98
7.0.00.0070.06020.01
5.6.280.0130.06021.02
5.6.250.0130.05720.54
5.6.240.0100.06720.63
5.6.230.0030.07020.57
5.6.220.0100.08320.62
5.6.210.0070.08020.41
5.6.200.0100.08021.00
5.6.190.0100.06321.05
5.6.180.0070.05320.98
5.6.170.0100.07021.02
5.6.160.0070.08021.00
5.6.150.0200.07320.96
5.6.140.0030.08721.02
5.6.130.0100.06021.02
5.6.120.0030.08721.04
5.6.110.0030.05320.98
5.6.100.0030.06021.00
5.6.90.0030.09020.97
5.6.80.0070.07320.43
5.6.70.0070.07320.32
5.6.60.0170.07320.48
5.6.50.0100.07720.41
5.6.40.0170.06020.24
5.6.30.0100.08020.38
5.6.20.0170.05720.36
5.6.10.0070.07720.47
5.6.00.0230.05320.37
5.5.380.0130.07720.45
5.5.370.0130.07020.35
5.5.360.0070.09320.34
5.5.350.0030.09320.28
5.5.340.0200.07320.82
5.5.330.0100.08720.75
5.5.320.0170.08020.85
5.5.310.0070.08020.56
5.5.300.0030.08320.86
5.5.290.0130.07720.83
5.5.280.0100.07020.74
5.5.270.0130.07320.85
5.5.260.0100.08320.67
5.5.250.0100.06720.59
5.5.240.0100.07720.26
5.5.230.0100.07019.95
5.5.220.0070.05020.18
5.5.210.0200.04720.12
5.5.200.0130.06020.14
5.5.190.0130.07320.17
5.5.180.0100.07720.08
5.5.160.0070.07319.94
5.5.150.0130.05320.08
5.5.140.0070.07320.05
5.5.130.0070.07720.17
5.5.120.0130.07320.12
5.5.110.0170.07719.93
5.5.100.0070.09020.02
5.5.90.0000.05320.12
5.5.80.0100.08020.12
5.5.70.0170.06019.88
5.5.60.0170.06720.00
5.5.50.0170.07019.91
5.5.40.0100.06720.01
5.5.30.0130.08019.98
5.5.20.0100.07020.11
5.5.10.0070.08020.06
5.5.00.0170.07020.00
5.4.450.0100.03719.43
5.4.440.0000.08719.44
5.4.430.0070.04719.35
5.4.420.0000.04319.41
5.4.410.0030.08719.09
5.4.400.0030.08019.12
5.4.390.0100.03318.98
5.4.380.0070.03718.98
5.4.370.0100.06018.96
5.4.360.0070.05018.95
5.4.350.0000.08019.05
5.4.340.0100.05719.17
5.4.320.0100.06719.05
5.4.310.0100.07319.03
5.4.300.0100.07719.14
5.4.290.0100.05318.98
5.4.280.0070.07319.04
5.4.270.0170.06719.09
5.4.260.0030.07719.14
5.4.250.0070.07718.93
5.4.240.0100.07019.00
5.4.230.0030.06319.22
5.4.220.0070.08318.89
5.4.210.0100.06719.01
5.4.200.0070.07319.02
5.4.190.0070.07018.89
5.4.180.0030.07019.11
5.4.170.0030.07718.77
5.4.160.0000.08319.21
5.4.150.0030.08018.77
5.4.140.0100.04316.19
5.4.130.0130.05016.20
5.4.120.0100.06716.00
5.4.110.0130.04716.21
5.4.100.0100.07016.34
5.4.90.0100.05016.21
5.4.80.0000.07316.39
5.4.70.0070.07316.21
5.4.60.0070.07316.42
5.4.50.0100.06716.28
5.4.40.0100.07016.30
5.4.30.0030.08016.18
5.4.20.0130.06716.31
5.4.10.0170.06316.32
5.4.00.0070.05015.76
5.3.290.0070.07714.64
5.3.280.0100.07014.42
5.3.270.0030.07714.56
5.3.260.0070.03714.44
5.3.250.0000.08314.47
5.3.240.0070.07014.46
5.3.230.0100.07314.45
5.3.220.0030.07714.47
5.3.210.0070.07314.47
5.3.200.0070.05714.53
5.3.190.0130.06714.56
5.3.180.0130.05714.51
5.3.170.0070.07314.39
5.3.160.0100.04314.57
5.3.150.0030.07014.55
5.3.140.0070.07714.55
5.3.130.0030.07714.38
5.3.120.0070.05014.50
5.3.110.0100.07314.38
5.3.100.0100.07013.89
5.3.90.0000.06313.96
5.3.80.0100.04713.87
5.3.70.0030.07713.97
5.3.60.0100.06013.98
5.3.50.0030.08013.89
5.3.40.0070.07013.85
5.3.30.0030.07313.77
5.3.20.0230.05013.60
5.3.10.0100.06313.63
5.3.00.0130.06013.50
5.2.170.0070.04011.21
5.2.160.0030.06311.06
5.2.150.0070.03310.96
5.2.140.0170.04711.18
5.2.130.0070.03711.17
5.2.120.0030.05010.98
5.2.110.0070.03711.06
5.2.100.0070.02311.04
5.2.90.0000.06711.17
5.2.80.0170.04711.01
5.2.70.0070.06011.07
5.2.60.0170.05010.86
5.2.50.0000.04310.96
5.2.40.0070.05010.83
5.2.30.0000.05710.83
5.2.20.0030.05310.75
5.2.10.0130.04310.93
5.2.00.0070.05710.71
5.1.60.0070.0439.98
5.1.50.0100.0479.99
5.1.40.0130.04710.05
5.1.30.0000.06310.25
5.1.20.0100.05010.30
5.1.10.0070.03010.07
5.1.00.0030.02710.07
5.0.50.0070.0378.61
5.0.40.0000.0478.44
5.0.30.0000.0678.20
5.0.20.0000.0478.08
5.0.10.0030.0438.28
5.0.00.0100.0638.15
4.4.90.0070.0337.61
4.4.80.0000.0237.61
4.4.70.0000.0237.61
4.4.60.0030.0337.61
4.4.50.0000.0337.61
4.4.40.0000.0577.61
4.4.30.0130.0277.61
4.4.20.0070.0237.61
4.4.10.0070.0307.61
4.4.00.0000.0477.61
4.3.110.0100.0277.61
4.3.100.0000.0337.61
4.3.90.0030.0337.61
4.3.80.0030.0507.61
4.3.70.0030.0337.61
4.3.60.0070.0237.61
4.3.50.0000.0377.61
4.3.40.0030.0377.61
4.3.30.0070.0307.61
4.3.20.0030.0277.61
4.3.10.0000.0237.61
4.3.00.0000.0207.61

preferences:
27.92 ms | 401 KiB | 5 Q