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 = explode(' ', str_replace((string)$key, $ary[$key].' ', $telop)); } var_dump($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.70.0120.00316.73
8.3.60.0200.00018.30
8.3.50.0140.00721.09
8.3.40.0140.00718.97
8.3.30.0060.00920.05
8.3.20.0040.00420.07
8.3.10.0030.00621.27
8.3.00.0090.00022.33
8.2.180.0090.00616.88
8.2.170.0030.01022.96
8.2.160.0100.00322.20
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00220.93
8.2.110.0060.00319.45
8.2.100.0090.00317.72
8.2.90.0060.00319.14
8.2.80.0000.00818.03
8.2.70.0000.00817.75
8.2.60.0080.00018.03
8.2.50.0030.00518.07
8.2.40.0080.00018.28
8.2.30.0070.00019.53
8.2.20.0000.00817.65
8.2.10.0040.00417.74
8.2.00.0000.00717.68
8.1.280.0110.00725.92
8.1.270.0040.00423.99
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0060.00324.02
8.1.230.0110.00021.04
8.1.220.0000.00818.77
8.1.210.0030.00620.91
8.1.200.0040.00417.48
8.1.190.0080.00017.41
8.1.180.0050.00318.10
8.1.170.0040.00418.71
8.1.160.0030.00518.88
8.1.150.0040.00418.65
8.1.140.0080.00017.35
8.1.130.0070.00017.88
8.1.120.0000.00717.46
8.1.110.0040.00417.38
8.1.100.0060.00317.49
8.1.90.0040.00417.40
8.1.80.0080.00017.35
8.1.70.0070.00017.34
8.1.60.0030.00617.46
8.1.50.0080.00017.49
8.1.40.0040.00417.48
8.1.30.0080.00017.55
8.1.20.0040.00417.69
8.1.10.0040.00417.50
8.1.00.0080.00017.54
8.0.300.0080.00019.85
8.0.290.0000.00717.15
8.0.280.0050.00218.35
8.0.270.0070.00017.18
8.0.260.0000.00616.81
8.0.250.0060.00316.93
8.0.240.0040.00417.00
8.0.230.0000.00716.88
8.0.220.0030.00316.91
8.0.210.0070.00016.91
8.0.200.0030.00517.02
8.0.190.0030.00316.92
8.0.180.0050.00217.01
8.0.170.0030.00316.92
8.0.160.0000.00716.89
8.0.150.0040.00416.91
8.0.140.0030.00316.90
8.0.130.0000.00613.37
8.0.120.0000.00816.93
8.0.110.0000.00716.94
8.0.100.0030.00516.93
8.0.90.0000.00716.78
8.0.80.0090.00616.92
8.0.70.0000.00716.94
8.0.60.0070.00016.96
8.0.50.0000.00716.80
8.0.30.0120.00717.11
8.0.20.0090.00917.40
8.0.10.0000.00817.00
8.0.00.0050.01316.69
7.4.330.0060.00016.71
7.4.320.0000.00616.55
7.4.300.0000.00616.64
7.4.290.0070.00016.44
7.4.280.0000.00716.50
7.4.270.0000.00716.51
7.4.260.0000.00513.32
7.4.250.0000.00916.45
7.4.240.0000.00716.46
7.4.230.0030.00316.49
7.4.220.0160.00316.57
7.4.210.0100.00616.57
7.4.200.0000.00716.47
7.4.190.0070.00016.45
7.4.160.0040.01216.56
7.4.150.0100.00917.40
7.4.140.0180.00317.86
7.4.130.0120.00416.58
7.4.120.0120.00816.41
7.4.110.0100.01016.61
7.4.100.0120.00616.42
7.4.90.0080.00816.49
7.4.80.0070.01419.39
7.4.70.0030.01416.58
7.4.60.0080.00916.26
7.4.50.0040.00416.41
7.4.40.0040.01222.77
7.4.30.0130.00316.65
7.4.00.0070.01114.61
7.3.330.0000.00513.12
7.3.320.0030.00313.30
7.3.310.0030.00416.31
7.3.300.0070.00016.25
7.3.290.0000.01416.30
7.3.280.0060.00916.33
7.3.270.0100.01017.40
7.3.260.0160.00318.24
7.3.250.0110.01016.54
7.3.240.0150.00316.28
7.3.230.0070.01016.54
7.3.210.0070.01016.34
7.3.200.0040.01819.39
7.3.190.0150.00816.39
7.3.180.0080.00816.43
7.3.170.0120.00316.53
7.3.160.0100.00716.40
7.3.120.0030.01214.98
7.2.330.0100.00716.52
7.2.320.0070.01016.58
7.2.310.0030.01516.78
7.2.300.0140.00316.52
7.2.290.0150.00316.72
7.2.60.0100.00316.59
7.2.00.0040.01219.29
7.1.200.0120.00315.76
7.1.100.0070.01017.95
7.1.70.0030.00517.26
7.1.60.0100.01319.17
7.1.50.0070.02016.82
7.1.00.0030.04322.43
7.0.200.0140.00714.65
7.0.140.0100.05721.95
7.0.60.0030.05320.01
7.0.50.0000.05717.64
7.0.40.0100.04719.98
7.0.30.0100.08320.11
7.0.20.0200.08020.17
7.0.10.0070.08720.14
7.0.00.0130.06020.19
5.6.280.0000.07320.98
5.6.210.0070.07320.56
5.6.200.0030.08318.16
5.6.190.0170.08020.41
5.6.180.0270.07720.41
5.6.170.0300.07720.37
5.6.160.0000.07720.52
5.6.150.0100.07318.16
5.6.140.0100.04018.09
5.6.130.0070.08318.07
5.6.120.0100.07721.00
5.6.110.0130.07320.98
5.6.100.0170.07320.97
5.6.90.0130.06021.00
5.6.80.0100.07320.50
5.5.350.3630.03020.39
5.5.340.0100.07717.98
5.5.330.0130.07720.07
5.5.320.0070.05320.30
5.5.310.0170.08720.32
5.5.300.0100.06317.98
5.5.290.0000.08317.89
5.5.280.0030.04020.85
5.5.270.0030.05720.98
5.5.260.0100.07020.67
5.5.250.0030.08320.61
5.5.240.0130.07020.04
5.4.450.0370.07719.61
5.4.440.0430.06719.42
5.4.430.0330.04019.41
5.4.420.0400.06319.23
5.4.410.0270.06718.98
5.4.400.0300.07319.14
5.4.390.0330.07018.92
5.4.380.0330.04718.88
5.4.370.0370.05318.88
5.4.360.0370.06719.09
5.4.350.0370.06719.13
5.4.340.0370.07018.88
5.4.320.0370.05319.24
5.4.310.0300.07719.06
5.4.300.0300.05019.09
5.4.290.0300.04019.25
5.4.280.0400.06018.80
5.4.270.0330.04319.13
5.4.260.0270.03719.13
5.4.250.0270.04318.80
5.4.240.0270.04319.15
5.4.230.0430.06019.21
5.4.220.0400.04318.80
5.4.210.0330.04318.92
5.4.200.0330.05018.93
5.4.190.0270.05319.08
5.4.180.0200.04319.07
5.4.170.0330.07318.92
5.4.160.0370.06019.21
5.4.150.0330.06318.90
5.4.140.0370.04316.45
5.4.130.0370.04016.21
5.4.120.0330.03316.25
5.4.110.0400.06716.07
5.4.100.0300.03316.49
5.4.90.0270.07316.43
5.4.80.0330.06716.29
5.4.70.0430.06016.41
5.4.60.0370.04316.38
5.4.50.0400.06316.36
5.4.40.0300.05316.47
5.4.30.0300.04316.28
5.4.20.0330.07016.46
5.4.10.0330.04716.27
5.4.00.0330.05715.71
5.3.290.0270.07715.70
5.3.280.0370.06715.70
5.3.270.0400.06715.70
5.3.260.0370.06015.70
5.3.250.0400.06015.70
5.3.240.0370.04315.70
5.3.230.0270.03715.70
5.3.220.0300.04715.70
5.3.210.0370.06715.70
5.3.200.0430.06015.70
5.3.190.0300.04015.70
5.3.180.0270.03315.70
5.3.170.0270.03715.70
5.3.160.0470.06015.70
5.3.150.0200.05315.70
5.3.140.0300.06315.70
5.3.130.0270.04015.70
5.3.120.0200.05715.70
5.3.110.0270.05315.70
5.3.100.0230.05015.70
5.3.90.0270.04015.70
5.3.80.0330.04015.70
5.3.70.0230.04315.70
5.3.60.0300.03715.70
5.3.50.0230.06315.70
5.3.40.0300.04015.70
5.3.30.0430.02315.70
5.3.20.0270.03715.70
5.3.10.0270.04015.70
5.3.00.0230.07015.70
5.2.170.0200.06015.70
5.2.160.0330.05715.70
5.2.150.0300.05015.70
5.2.140.0300.06015.70
5.2.130.0230.05315.70
5.2.120.0270.04015.70
5.2.110.0200.05015.70
5.2.100.0230.05715.70
5.2.90.0200.04315.70
5.2.80.0270.02015.70
5.2.70.0270.03315.70
5.2.60.0200.03015.70
5.2.50.0270.05715.70
5.2.40.0200.02715.70
5.2.30.0200.03315.70
5.2.20.0270.04015.70
5.2.10.0170.04315.70
5.2.00.0200.05015.70
5.1.60.0270.04315.70
5.1.50.0230.04315.70
5.1.40.0230.05015.70
5.1.30.0270.04715.70
5.1.20.0270.05015.70
5.1.10.0230.02315.70
5.1.00.0170.02715.70
5.0.50.0230.02715.70
5.0.40.0070.02715.70
5.0.30.0100.03315.70
5.0.20.0100.02315.70
5.0.10.0070.02315.70
5.0.00.0130.05015.70
4.4.90.0100.02315.70
4.4.80.0070.03315.70
4.4.70.0170.02715.70
4.4.60.0130.01715.70
4.4.50.0200.02715.70
4.4.40.0170.05015.70
4.4.30.0100.03715.70
4.4.20.0170.02015.70
4.4.10.0170.03315.70
4.4.00.0100.04315.70
4.3.110.0130.03315.70
4.3.100.0100.02715.70
4.3.90.0170.03015.70
4.3.80.0170.05015.70
4.3.70.0130.03315.70
4.3.60.0070.02015.70
4.3.50.0230.02315.70
4.3.40.0130.04015.70
4.3.30.0070.02015.70
4.3.20.0070.03715.70
4.3.10.0100.03315.70
4.3.00.0070.02315.70

preferences:
39.83 ms | 401 KiB | 5 Q