3v4l.org

run code in 300+ PHP versions simultaneously
<?php $weather = array( "forecasts" => array("晴れ", "晴れ時々雨", "雪のち雨") ); $ary = array( "晴れ" => "sunny", "雨" => "rainy", "曇" => "cloudy", "雪" => "snowy", "のち" => "later", "時々" => "and" ); for ($i=0; $i < 3; $i++) { //$telop = $weather->forecasts[$i]->telop; $telop = $weather->forecasts[$i]; foreach ($ary as $key => $value) { str_replace($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.0120.00618.68
8.3.50.0190.00921.02
8.3.40.0120.00318.85
8.3.30.0110.00320.29
8.3.20.0040.00420.16
8.3.10.0080.00021.09
8.3.00.0040.00422.40
8.2.180.0100.00716.63
8.2.170.0140.00422.96
8.2.160.0130.00022.21
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0050.00320.75
8.2.110.0060.00321.12
8.2.100.0120.00017.72
8.2.90.0050.00319.21
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0040.00418.05
8.2.50.0040.00418.07
8.2.40.0000.00918.34
8.2.30.0070.00019.36
8.2.20.0050.00217.66
8.2.10.0070.00217.82
8.2.00.0030.00617.71
8.1.280.0170.00025.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0070.00321.38
8.1.230.0080.00317.42
8.1.220.0000.00817.74
8.1.210.0090.00018.77
8.1.200.0000.00817.23
8.1.190.0050.00317.23
8.1.180.0030.00518.10
8.1.170.0050.00318.69
8.1.160.0000.00818.86
8.1.150.0050.00218.55
8.1.140.0040.00417.58
8.1.130.0030.00317.70
8.1.120.0120.00617.25
8.1.110.0000.00717.48
8.1.100.0000.00917.36
8.1.90.0070.00017.35
8.1.80.0110.00017.42
8.1.70.0040.00217.43
8.1.60.0060.00317.48
8.1.50.0040.00417.56
8.1.40.0050.00317.50
8.1.30.0080.00017.59
8.1.20.0000.00817.56
8.1.10.0000.00817.49
8.1.00.0040.00417.52
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0070.00018.45
8.0.270.0020.00517.26
8.0.260.0030.00316.75
8.0.250.0070.00016.92
8.0.240.0030.00417.03
8.0.230.0090.00016.95
8.0.220.0000.00717.00
8.0.210.0080.00016.84
8.0.200.0000.00717.00
8.0.190.0060.00316.94
8.0.180.0040.00417.02
8.0.170.0050.00316.94
8.0.160.0030.00316.95
8.0.150.0070.00016.91
8.0.140.0000.00716.87
8.0.130.0030.00313.34
8.0.120.0080.00016.95
8.0.110.0000.00816.98
8.0.100.0040.00416.94
8.0.90.0070.00017.01
8.0.80.0120.00316.91
8.0.70.0000.00816.94
8.0.60.0050.00316.77
8.0.50.0000.00717.00
8.0.30.0060.01216.92
8.0.20.0130.00617.40
8.0.10.0080.00017.19
8.0.00.0080.01116.81
7.4.330.0000.00616.75
7.4.320.0030.00316.60
7.4.300.0000.00716.57
7.4.290.0060.00016.51
7.4.280.0000.00716.48
7.4.270.0070.00016.50
7.4.260.0000.00513.23
7.4.250.0070.00016.37
7.4.240.0080.00016.52
7.4.230.0030.00316.50
7.4.220.0100.00916.67
7.4.210.0070.00716.52
7.4.200.0000.00716.53
7.4.190.0030.00316.57
7.4.160.0060.01016.80
7.4.150.0060.01217.40
7.4.140.0160.00517.86
7.4.130.0060.01016.53
7.4.120.0110.00616.46
7.4.110.0150.00416.56
7.4.100.0110.00516.48
7.4.90.0090.00616.54
7.4.80.0120.01219.39
7.4.70.0090.00916.36
7.4.60.0130.01016.63
7.4.50.0000.00816.65
7.4.40.0070.01122.77
7.4.30.0030.01916.71
7.4.00.0030.01315.04
7.3.330.0050.00013.32
7.3.320.0060.00013.18
7.3.310.0060.00016.45
7.3.300.0000.00716.38
7.3.290.0060.01316.44
7.3.280.0140.00516.43
7.3.270.0000.01917.40
7.3.260.0040.01518.24
7.3.250.0070.00916.31
7.3.240.0130.00316.53
7.3.230.0130.01216.62
7.3.210.0100.00816.65
7.3.200.0180.00419.39
7.3.190.0120.00916.67
7.3.180.0110.00416.45
7.3.170.0060.01016.57
7.3.160.0120.00816.56
7.3.120.0060.00915.08
7.3.10.0070.00616.61
7.3.00.0030.00616.56
7.2.330.0060.01316.84
7.2.320.0100.01416.70
7.2.310.0110.00516.58
7.2.300.0060.01316.81
7.2.290.0030.01416.76
7.2.130.0030.01016.81
7.2.120.0120.00317.06
7.2.110.0040.01516.88
7.2.100.0060.00617.02
7.2.90.0000.00917.09
7.2.80.0090.00616.95
7.2.70.0080.00416.98
7.2.60.0070.00416.81
7.2.50.0080.00416.95
7.2.40.0030.01017.08
7.2.30.0090.00016.95
7.2.20.0000.01317.00
7.2.10.0000.01716.69
7.2.00.0070.00518.03
7.1.250.0030.00916.04
7.1.240.0060.00315.79
7.1.230.0060.00615.79
7.1.220.0100.00315.66
7.1.210.0070.01015.59
7.1.200.0080.00015.87
7.1.190.0070.00315.50
7.1.180.0060.00615.77
7.1.170.0040.00416.02
7.1.160.0070.00715.79
7.1.150.0100.00315.99
7.1.140.0070.00315.85
7.1.130.0070.00315.86
7.1.120.0000.00915.89
7.1.110.0030.00615.74
7.1.100.0030.00816.80
7.1.90.0060.00915.56
7.1.80.0050.00215.85
7.1.70.0020.00716.42
7.1.60.0110.00417.45
7.1.50.0070.01116.14
7.1.40.0020.00515.79
7.1.30.0090.00316.01
7.1.20.0040.00715.91
7.1.10.0040.00815.98
7.1.00.0050.04119.05
7.0.330.0050.00315.36
7.0.320.0090.00015.30
7.0.310.0060.00315.47
7.0.300.0050.00515.42
7.0.290.0130.00015.55
7.0.280.0080.00815.29
7.0.270.0000.00915.42
7.0.260.0090.00315.18
7.0.250.0070.00415.41
7.0.240.0030.00815.41
7.0.230.0100.00315.36
7.0.220.0060.00615.30
7.0.210.0090.00615.29
7.0.200.0040.00516.27
7.0.190.0000.01215.59
7.0.180.0000.00815.52
7.0.170.0120.00015.61
7.0.160.0030.00915.14
7.0.150.0100.00315.57
7.0.140.0020.04118.81
7.0.130.0030.00815.42
7.0.120.0000.00815.13
7.0.110.0060.00615.53
7.0.100.0130.04517.76
7.0.90.0030.04017.80
7.0.80.0100.02217.69
7.0.70.0120.03717.59
7.0.60.0110.03817.69
7.0.50.0070.04417.95
7.0.40.0100.03316.76
7.0.30.0130.04216.78
7.0.20.0000.03116.84
7.0.10.0080.04516.78
7.0.00.0080.03716.84
5.6.380.0030.01014.70
5.6.370.0040.00414.60
5.6.360.0060.00314.16
5.6.350.0030.00814.65
5.6.340.0030.00913.98
5.6.330.0130.00014.17
5.6.320.0060.00614.25
5.6.310.0000.00914.55
5.6.300.0030.01314.18
5.6.290.0030.00714.68
5.6.280.0010.04317.71
5.6.270.0090.00614.34
5.6.260.0080.00314.04
5.6.250.0070.02717.56
5.6.240.0080.04217.66
5.6.230.0030.02517.41
5.6.220.0080.03817.48
5.6.210.0080.03217.63
5.6.200.0070.04717.72
5.6.190.0080.04017.65
5.6.180.0070.04617.68
5.6.170.0060.02817.72
5.6.160.0050.03317.63
5.6.150.0070.02317.71
5.6.140.0070.03817.60
5.6.130.0130.04117.73
5.6.120.0050.03817.79
5.6.110.0030.02817.73
5.6.100.0080.02617.74
5.6.90.0080.03617.74
5.6.80.0030.04117.27
5.6.70.0080.04017.43
5.6.60.0090.02317.35
5.6.50.0080.02517.50
5.6.40.0060.03617.37
5.6.30.0060.03817.39
5.6.20.0080.03217.28
5.6.10.0090.03217.29
5.6.00.0030.03817.34
5.5.380.0030.03015.67
5.5.370.0070.03615.90
5.5.360.0070.04315.76
5.5.350.0080.02515.81
5.5.340.0060.02915.88
5.5.330.0050.04415.94
5.5.320.0070.04215.97
5.5.310.0080.04216.04
5.5.300.0030.04015.89
5.5.290.0090.04315.96
5.5.280.0100.02515.90
5.5.270.0120.03615.83
5.5.260.0020.04215.96
5.5.250.0070.03215.91
5.5.240.0140.03115.73
5.5.230.0100.02715.60
5.5.220.0060.03115.66
5.5.210.0030.02615.47
5.5.200.0070.02915.63
5.5.190.0080.03115.68
5.5.180.0070.02415.56
5.5.170.0080.00310.68
5.5.160.0050.04115.63
5.5.150.0050.02215.57
5.5.140.0060.02315.68
5.5.130.0050.03415.69
5.5.120.0000.02715.62
5.5.110.0020.04815.63
5.5.100.0110.03515.44
5.5.90.0080.03715.65
5.5.80.0050.03015.60
5.5.70.0030.03215.47
5.5.60.0050.03015.57
5.5.50.0050.04015.57
5.5.40.0060.04115.58
5.5.30.0030.03615.48
5.5.20.0050.04415.42
5.5.10.0160.03215.60
5.5.00.0070.03915.53
5.4.450.0120.03315.26
5.4.440.0030.04215.17
5.4.430.0050.04515.25
5.4.420.0080.03215.33
5.4.410.0080.03915.17
5.4.400.0080.03715.07
5.4.390.0070.02414.99
5.4.380.0040.03615.04
5.4.370.0050.03614.86
5.4.360.0020.02315.12
5.4.350.0080.03715.04
5.4.340.0060.04114.99
5.4.330.0040.00810.61
5.4.320.0050.02314.96
5.4.310.0040.03415.14
5.4.300.0050.01915.08
5.4.290.0030.03815.04
5.4.280.0130.03215.02
5.4.270.0080.02214.96
5.4.260.0050.04215.04
5.4.250.0030.02715.01
5.4.240.0070.02515.23
5.4.230.0030.02414.92
5.4.220.0050.04114.96
5.4.210.0030.02815.06
5.4.200.0080.03514.93
5.4.190.0060.02714.91
5.4.180.0070.02215.08
5.4.170.0090.03815.06
5.4.160.0050.03414.97
5.4.150.0110.03114.96
5.4.140.0050.02613.69
5.4.130.0020.03313.78
5.4.120.0090.02013.66
5.4.110.0020.02713.63
5.4.100.0030.02113.68
5.4.90.0080.03313.77
5.4.80.0050.02013.56
5.4.70.0020.03513.69
5.4.60.0050.03913.61
5.4.50.0080.01813.73
5.4.40.0050.03713.78
5.4.30.0030.03613.61
5.4.20.0080.03513.63
5.4.10.0080.03213.60
5.4.00.0030.03513.48
5.3.290.0100.03712.61
5.3.280.0100.03312.50
5.3.270.0060.03012.51
5.3.260.0030.03412.56
5.3.250.0030.02312.48
5.3.240.0050.02912.42
5.3.230.0070.03312.40
5.3.220.0030.02012.51
5.3.210.0060.03212.52
5.3.200.0080.04012.40
5.3.190.0030.04012.44
5.3.180.0040.03612.46
5.3.170.0080.03812.62
5.3.160.0070.02012.52
5.3.150.0050.03812.60
5.3.140.0050.02312.49
5.3.130.0050.02112.38
5.3.120.0080.03812.39
5.3.110.0050.01812.51
5.3.100.0040.04212.13
5.3.90.0030.03812.31
5.3.80.0050.03912.06
5.3.70.0020.03312.21
5.3.60.0030.02112.28
5.3.50.0050.02212.17
5.3.40.0040.02612.18
5.3.30.0050.04012.14
5.3.20.0050.02211.96
5.3.10.0030.03512.00
5.3.00.0060.03211.95
5.2.170.0050.01310.37
5.2.160.0000.03210.32
5.2.150.0030.01510.17
5.2.140.0030.03610.31
5.2.130.0020.01510.29
5.2.120.0020.01610.21
5.2.110.0090.03010.04
5.2.100.0050.01810.19
5.2.90.0030.03110.25
5.2.80.0020.03610.24
5.2.70.0050.01710.17
5.2.60.0030.02910.09
5.2.50.0080.03010.15
5.2.40.0050.03010.25
5.2.30.0030.02810.15
5.2.20.0050.03210.08
5.2.10.0060.0129.99
5.2.00.0030.0279.87
5.1.60.0050.0259.29
5.1.50.0030.0129.26
5.1.40.0070.0169.21
5.1.30.0020.0229.43
5.1.20.0030.0149.43
5.1.10.0070.0179.36
5.1.00.0010.0169.22
5.0.50.0020.0278.42
5.0.40.0030.0158.38
5.0.30.0050.0338.27
5.0.20.0010.0158.29
5.0.10.0050.0088.29
5.0.00.0000.0198.29
4.4.90.0040.0158.20
4.4.80.0020.0088.20
4.4.70.0040.0138.20
4.4.60.0020.0128.20
4.4.50.0000.0148.20
4.4.40.0020.0308.20
4.4.30.0030.0178.20
4.4.20.0020.0088.20
4.4.10.0020.0188.20
4.4.00.0030.0278.20
4.3.110.0020.0208.20
4.3.100.0050.0178.20
4.3.90.0030.0088.20
4.3.80.0030.0128.20
4.3.70.0010.0118.20
4.3.60.0050.0178.20
4.3.50.0020.0208.20
4.3.40.0020.0248.20
4.3.30.0000.0218.20
4.3.20.0020.0158.20
4.3.10.0020.0188.20
4.3.00.0030.0088.20

preferences:
44.96 ms | 401 KiB | 5 Q