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); $telopList = explode(' ', $telop); array_pop($telopList); } if( count($telopList) === 1 ) { echo '<span id="'.$telopList[0].'" class="only"></span>'; } else { echo '<span id=\"'.$telopList[0].'\" class=\"'.$telopList[1].' '.$telopList[2].'\"></span>'; } }

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.40.0100.00718.67
8.3.30.0030.01020.34
8.3.20.0060.00320.16
8.3.10.0090.00021.05
8.3.00.0000.00822.34
8.2.170.0070.01122.96
8.2.160.0100.00322.16
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0050.00320.71
8.2.110.0030.00619.27
8.2.100.0040.00717.84
8.2.90.0080.00019.40
8.2.80.0030.00517.97
8.2.70.0050.00317.50
8.2.60.0040.00417.93
8.2.50.0030.00518.07
8.2.40.0070.00318.15
8.2.30.0000.00719.50
8.2.20.0040.00417.71
8.2.10.0030.00517.64
8.2.00.0030.00617.75
8.1.270.0040.00423.99
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0030.00623.92
8.1.230.0030.00721.04
8.1.220.0000.00818.77
8.1.210.0070.00320.88
8.1.200.0060.00317.10
8.1.190.0040.00417.40
8.1.180.0000.00818.10
8.1.170.0040.00418.59
8.1.160.0040.00418.88
8.1.150.0000.00718.69
8.1.140.0040.00417.51
8.1.130.0000.00817.84
8.1.120.0040.00417.47
8.1.110.0000.00817.38
8.1.100.0050.00317.36
8.1.90.0070.00017.47
8.1.80.0070.00017.38
8.1.70.0000.00717.45
8.1.60.0000.00817.61
8.1.50.0020.00517.53
8.1.40.0030.00617.41
8.1.30.0000.00917.50
8.1.20.0040.00417.56
8.1.10.0040.00417.53
8.1.00.0070.00017.54
8.0.300.0090.00019.91
8.0.290.0030.00317.04
8.0.280.0030.00518.41
8.0.270.0000.00717.25
8.0.260.0030.00316.81
8.0.250.0030.00616.87
8.0.240.0000.00817.03
8.0.230.0070.00016.85
8.0.220.0050.00216.83
8.0.210.0070.00016.94
8.0.200.0040.00416.94
8.0.190.0030.00617.00
8.0.180.0000.00716.89
8.0.170.0040.00416.89
8.0.160.0040.00416.84
8.0.150.0000.00816.80
8.0.140.0040.00416.75
8.0.130.0030.00313.28
8.0.120.0000.00816.83
8.0.110.0030.00516.96
8.0.100.0030.00516.98
8.0.90.0030.00516.76
8.0.80.0060.00916.88
8.0.70.0040.00416.79
8.0.60.0070.00016.94
8.0.50.0040.00416.82
8.0.30.0070.01017.18
8.0.20.0120.00717.40
8.0.10.0000.00716.81
8.0.00.0120.00516.86
7.4.330.0020.00216.84
7.4.320.0000.00716.50
7.4.300.0060.00016.62
7.4.290.0060.00016.39
7.4.280.0030.00316.49
7.4.270.0040.00416.58
7.4.260.0020.00213.30
7.4.250.0000.00816.42
7.4.240.0030.00316.48
7.4.230.0030.00316.41
7.4.220.0200.00616.58
7.4.210.0090.00816.58
7.4.200.0030.00316.40
7.4.190.0000.00716.67
7.4.160.0060.01116.58
7.4.150.0170.00017.40
7.4.140.0090.00817.86
7.4.130.0090.00816.48
7.4.120.0080.00916.48
7.4.110.0220.02616.49
7.4.100.0140.00316.46
7.4.90.0040.01316.40
7.4.80.0060.01119.39
7.4.70.0100.00716.68
7.4.60.0070.01016.39
7.4.50.0060.00316.35
7.4.40.0170.00022.77
7.4.30.0110.00616.46
7.4.10.0000.01814.70
7.4.00.0050.01114.88
7.3.330.0060.00013.17
7.3.320.0000.00613.21
7.3.310.0030.00316.22
7.3.300.0030.00316.31
7.3.290.0000.01316.36
7.3.280.0090.01016.26
7.3.270.0080.00817.40
7.3.260.0140.00618.24
7.3.250.0070.01116.48
7.3.240.0090.00916.42
7.3.230.0080.01216.39
7.3.210.0060.00916.26
7.3.200.0160.00719.39
7.3.190.0070.01016.28
7.3.180.0130.00316.38
7.3.170.0070.01416.62
7.3.160.0070.01016.41
7.3.130.0000.01614.73
7.3.120.0060.00914.62
7.3.110.0090.00914.56
7.3.100.0090.00414.92
7.3.90.0090.00914.82
7.3.80.0020.01314.97
7.3.70.0100.00314.79
7.3.60.0080.00514.81
7.3.50.0050.01114.70
7.3.40.0030.01014.94
7.3.30.0040.00714.88
7.3.20.0120.00416.86
7.3.10.0080.00916.79
7.3.00.0100.00316.62
7.2.330.0080.01116.51
7.2.320.0070.01016.84
7.2.310.0100.01116.71
7.2.300.0110.00516.65
7.2.290.0100.01016.40
7.2.260.0090.01215.30
7.2.250.0080.01115.30
7.2.240.0020.01515.18
7.2.230.0110.00515.08
7.2.220.0120.00615.14
7.2.210.0050.01015.25
7.2.200.0060.00615.14
7.2.190.0070.00915.13
7.2.180.0080.01015.21
7.2.170.0040.00615.07
7.2.160.0030.01315.11
7.2.150.0060.00916.94
7.2.140.0070.01116.95
7.2.130.0060.00316.63
7.2.120.0100.00316.99
7.2.110.0060.00916.82
7.2.100.0160.00017.10
7.2.90.0060.00916.81
7.2.80.0070.00716.84
7.2.70.0060.01316.94
7.2.60.0030.00916.95
7.2.50.0090.00317.01
7.2.40.0000.01216.87
7.2.30.0070.01117.00
7.2.20.0000.01316.78
7.2.10.0090.00617.05
7.2.00.0050.01218.13
7.1.330.0070.00515.84
7.1.320.0070.01116.05
7.1.310.0050.00815.95
7.1.300.0050.01015.77
7.1.290.0030.01115.78
7.1.280.0050.00715.83
7.1.270.0050.01115.71
7.1.260.0100.00715.89
7.1.250.0030.01015.98
7.1.240.0100.00315.79
7.1.230.0100.00315.77
7.1.220.0030.00715.77
7.1.210.0040.00815.71
7.1.200.0100.00615.84
7.1.190.0120.00315.59
7.1.180.0030.00615.62
7.1.170.0110.00315.84
7.1.160.0080.00815.62
7.1.150.0030.01216.02
7.1.140.0090.00315.96
7.1.130.0030.00915.91
7.1.120.0060.00915.82
7.1.110.0000.01715.61
7.1.100.0120.00417.19
7.1.90.0090.00015.71
7.1.80.0030.01015.88
7.1.70.0080.00216.43
7.1.60.0050.01517.53
7.1.50.0050.00816.32
7.1.40.0000.01315.83
7.1.30.0060.00615.92
7.1.20.0100.00315.83
7.1.10.0070.00715.76
7.1.00.0010.03419.06
7.0.330.0070.00715.41
7.0.320.0050.00515.49
7.0.310.0060.00615.52
7.0.300.0040.00815.43
7.0.290.0070.01015.26
7.0.280.0090.00615.28
7.0.270.0090.00315.55
7.0.260.0030.00615.23
7.0.250.0070.00415.54
7.0.240.0070.00715.39
7.0.230.0060.00315.56
7.0.220.0000.01215.58
7.0.210.0030.00615.38
7.0.200.0130.00714.93
7.0.190.0070.00715.38
7.0.180.0040.00815.54
7.0.170.0090.00315.60
7.0.160.0040.00815.36
7.0.150.0110.00315.21
7.0.140.0020.04418.88
7.0.130.0000.01215.50
7.0.120.0000.01315.45
7.0.110.0030.00915.17
7.0.100.0030.02717.62
7.0.90.0050.02817.67
7.0.80.0020.02517.71
7.0.70.0070.02517.68
7.0.60.0080.02717.80
7.0.50.0080.02218.02
7.0.40.0030.02516.72
7.0.30.0050.02316.84
7.0.20.0060.02016.88
7.0.10.0050.02416.85
7.0.00.0080.02516.81
5.6.400.0040.01414.34
5.6.390.0060.01014.45
5.6.380.0070.00714.40
5.6.370.0060.01314.34
5.6.360.0000.01314.29
5.6.350.0030.01214.75
5.6.340.0050.00514.18
5.6.330.0030.01314.25
5.6.320.0060.00914.50
5.6.310.0030.00914.67
5.6.300.0060.00914.41
5.6.290.0100.00014.43
5.6.280.0070.03717.55
5.6.270.0040.00714.54
5.6.260.0070.00414.54
5.6.250.0030.02717.61
5.6.240.0020.02717.56
5.6.230.0080.02517.49
5.6.220.0070.02217.46
5.6.210.0110.01417.50
5.6.200.0080.02817.64
5.6.190.0080.02117.71
5.6.180.0050.02417.98
5.6.170.0070.02217.84
5.6.160.0080.02317.74
5.6.150.0040.02617.62
5.6.140.0030.02517.76
5.6.130.0080.02317.71
5.6.120.0050.04517.66
5.6.110.0030.02717.59
5.6.100.0080.04017.81
5.6.90.0070.02517.61
5.6.80.0080.02117.44
5.6.70.0090.02817.31
5.6.60.0050.04517.50
5.6.50.0050.04817.34
5.6.40.0060.02317.36
5.6.30.0020.04017.43
5.6.20.0070.04217.23
5.6.10.0030.02717.38
5.6.00.0040.02617.41
5.5.380.0000.02917.31
5.5.370.0050.02517.54
5.5.360.0060.02417.36
5.5.350.0100.02017.37
5.5.340.0050.02317.63
5.5.330.0030.02817.53
5.5.320.0020.03417.70
5.5.310.0030.02317.63
5.5.300.0140.01617.48
5.5.290.0090.02217.69
5.5.280.0070.02117.43
5.5.270.0080.04317.49
5.5.260.0130.01517.57
5.5.250.0030.02717.53
5.5.240.0090.02017.22
5.5.230.0100.04017.29
5.5.220.0020.02717.43
5.5.210.0080.02417.21
5.5.200.0020.02417.19
5.5.190.0050.02717.07
5.5.180.0020.04617.25
5.5.170.0040.01114.44
5.5.160.0080.02517.33
5.5.150.0080.02117.12
5.5.140.0090.02517.18
5.5.130.0050.04417.21
5.5.120.0100.03317.15
5.5.110.0070.03717.33
5.5.100.0050.04417.31
5.5.90.0050.02617.20
5.5.80.0090.02317.20
5.5.70.0040.04417.04
5.5.60.0050.03717.26
5.5.50.0050.03817.03
5.5.40.0080.04017.11
5.5.30.0070.03717.25
5.5.20.0050.02817.03
5.5.10.0030.03317.07
5.5.00.0080.02717.26
5.4.450.0050.02215.98
5.4.440.0060.03215.91
5.4.430.0080.02315.96
5.4.420.0050.03315.97
5.4.410.0090.04015.77
5.4.400.0080.03215.84
5.4.390.0050.03915.77
5.4.380.0040.03015.86
5.4.370.0130.03215.84
5.4.360.0100.03615.81
5.4.350.0020.02115.80
5.4.340.0040.03215.69
5.4.330.0000.01012.57
5.4.320.0040.03815.80
5.4.310.0070.04015.77
5.4.300.0030.03515.67
5.4.290.0120.03115.77
5.4.280.0060.02515.84
5.4.270.0080.03815.84
5.4.260.0070.02715.81
5.4.250.0030.02815.67
5.4.240.0110.03315.79
5.4.230.0080.03815.81
5.4.220.0050.03915.80
5.4.210.0060.02515.89
5.4.200.0090.01815.81
5.4.190.0080.02015.81
5.4.180.0050.04015.83
5.4.170.0070.04315.73
5.4.160.0060.03815.76
5.4.150.0080.03315.74
5.4.140.0050.04014.44
5.4.130.0080.02814.31
5.4.120.0030.03614.44
5.4.110.0070.02714.41
5.4.100.0070.03714.39
5.4.90.0070.03514.47
5.4.80.0030.02714.42
5.4.70.0050.03214.49
5.4.60.0110.03314.40
5.4.50.0050.02414.38
5.4.40.0070.04014.46
5.4.30.0080.04014.40
5.4.20.0050.02214.48
5.4.10.0070.03214.43
5.4.00.0030.03914.13
5.3.290.0060.04113.62
5.3.280.0030.02513.51
5.3.270.0030.02613.52
5.3.260.0030.02813.51
5.3.250.0050.02013.52
5.3.240.0000.03013.58
5.3.230.0080.03813.49
5.3.220.0070.02313.52
5.3.210.0060.04013.55
5.3.200.0030.04113.54
5.3.190.0030.04113.57
5.3.180.0090.02513.57
5.3.170.0020.04413.56
5.3.160.0080.02513.56
5.3.150.0030.02313.55
5.3.140.0030.02313.47
5.3.130.0070.03013.54
5.3.120.0040.02613.56
5.3.110.0020.04313.54
5.3.100.0060.04013.21
5.3.90.0050.03313.28
5.3.80.0070.03513.22
5.3.70.0070.02213.22
5.3.60.0030.03313.17
5.3.50.0070.03713.25
5.3.40.0030.04213.14
5.3.30.0050.03813.24
5.3.20.0020.02313.13
5.3.10.0070.02113.04
5.3.00.0050.02313.08
5.2.170.0070.05711.14
5.2.160.0070.06011.21
5.2.150.0000.05311.18
5.2.140.0030.04011.19
5.2.130.0000.06711.10
5.2.120.0070.03710.94
5.2.110.0030.03311.12
5.2.100.0030.06011.04
5.2.90.0000.03711.03
5.2.80.0070.02711.06
5.2.70.0030.04710.89
5.2.60.0070.03311.02
5.2.50.0030.03010.95
5.2.40.0030.05310.96
5.2.30.0070.05710.92
5.2.20.0000.06311.03
5.2.10.0030.03310.77
5.2.00.0000.03710.71
5.1.60.0130.0209.98
5.1.50.0030.04310.09
5.1.40.0030.0279.99
5.1.30.0000.04710.34
5.1.20.0070.03010.26
5.1.10.0070.0539.91
5.1.00.0070.05010.05
5.0.50.0070.0308.64
5.0.40.0000.0338.46
5.0.30.0070.0608.21
5.0.20.0000.0238.30
5.0.10.0000.0408.26
5.0.00.0000.0608.23
4.4.90.0030.0178.21
4.4.80.0070.0308.21
4.4.70.0000.0178.21
4.4.60.0030.0338.21
4.4.50.0070.0278.21
4.4.40.0070.0478.21
4.4.30.0030.0178.21
4.4.20.0070.0238.21
4.4.10.0030.0238.21
4.4.00.0000.0508.21
4.3.110.0000.0378.21
4.3.100.0000.0208.21
4.3.90.0030.0408.21
4.3.80.0000.0408.21
4.3.70.0030.0278.21
4.3.60.0000.0238.21
4.3.50.0000.0338.21
4.3.40.0070.0438.21
4.3.30.0000.0338.21
4.3.20.0000.0378.21
4.3.10.0030.0338.21
4.3.00.0030.0338.21

preferences:
46.21 ms | 400 KiB | 5 Q