3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dummyData = array( '晴れ', '雨時々晴れ', '晴れのち雨' ); $weatherList = array( '晴れ' => 'sunny', '雨' => 'rainy', '曇' => 'cloudy', '雪' => 'snowy', 'のち' => 'later', '時々' => 'and' ); for ( $i=0; $i < 3; $i++ ) { //$telop = $weather->forecasts[$i]->telop; $telop = $dummyData[$i]; foreach ($weatherList as $key => $value) { $telop = str_replace( (string)$key, $weatherList[$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.60.0150.00018.18
8.3.50.0090.00821.14
8.3.40.0040.01218.67
8.3.30.0100.00320.20
8.3.20.0000.00820.33
8.3.10.0080.00021.05
8.3.00.0040.00422.34
8.2.180.0100.01018.29
8.2.170.0090.00622.96
8.2.160.0100.00322.08
8.2.150.0070.00025.66
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0050.00320.80
8.2.110.0060.00319.30
8.2.100.0000.01117.84
8.2.90.0040.00419.26
8.2.80.0000.00818.16
8.2.70.0060.00317.75
8.2.60.0000.00818.16
8.2.50.0080.00018.07
8.2.40.0100.00018.15
8.2.30.0040.00419.46
8.2.20.0050.00317.64
8.2.10.0040.00417.62
8.2.00.0070.00017.63
8.1.280.0090.00625.92
8.1.270.0000.00823.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00723.88
8.1.230.0110.00020.78
8.1.220.0030.00518.77
8.1.210.0030.00619.04
8.1.200.0060.00317.00
8.1.190.0030.00617.55
8.1.180.0070.00318.10
8.1.170.0030.00618.46
8.1.160.0040.00418.93
8.1.150.0040.00418.63
8.1.140.0070.00017.46
8.1.130.0040.00417.74
8.1.120.0050.00417.47
8.1.110.0050.00217.32
8.1.100.0000.00817.50
8.1.90.0040.00417.39
8.1.80.0000.00717.45
8.1.70.0070.00017.41
8.1.60.0000.00817.55
8.1.50.0000.00717.52
8.1.40.0000.00717.41
8.1.30.0040.00417.51
8.1.20.0080.00017.61
8.1.10.0000.00717.56
8.1.00.0000.00817.52
8.0.300.0040.00419.94
8.0.290.0000.00817.05
8.0.280.0040.00418.40
8.0.270.0040.00417.30
8.0.260.0070.00016.86
8.0.250.0000.01016.99
8.0.240.0090.00016.95
8.0.230.0030.00316.96
8.0.220.0030.00316.83
8.0.210.0030.00516.82
8.0.200.0000.00616.99
8.0.190.0000.00716.84
8.0.180.0040.00416.90
8.0.170.0000.00816.93
8.0.160.0000.00716.87
8.0.150.0030.00316.87
8.0.140.0030.00516.75
8.0.130.0050.00013.34
8.0.120.0030.00516.88
8.0.110.0040.00416.82
8.0.100.0080.00016.76
8.0.90.0070.00016.77
8.0.80.0100.01016.87
8.0.70.0040.00416.92
8.0.60.0040.00416.84
8.0.50.0070.00016.95
8.0.30.0070.01217.22
8.0.20.0110.00817.40
8.0.10.0000.00716.86
8.0.00.0140.00816.81
7.4.330.0000.00516.89
7.4.320.0000.00716.58
7.4.300.0000.00716.41
7.4.290.0060.00016.59
7.4.280.0000.00716.41
7.4.270.0000.00716.52
7.4.260.0030.00313.27
7.4.250.0030.00516.46
7.4.240.0000.00816.51
7.4.230.0080.00016.61
7.4.220.0070.01116.67
7.4.210.0040.01216.54
7.4.200.0030.00316.58
7.4.190.0030.00316.47
7.4.160.0080.00816.27
7.4.150.0120.01217.40
7.4.140.0100.00717.86
7.4.130.0070.01116.51
7.4.120.0110.00716.40
7.4.110.0030.01316.34
7.4.100.0060.01516.37
7.4.90.0100.00716.59
7.4.80.0090.00619.39
7.4.70.0030.01416.55
7.4.60.0110.00616.31
7.4.50.0060.00316.47
7.4.40.0070.00722.77
7.4.30.0170.00016.59
7.4.10.0110.00715.10
7.4.00.0120.00814.96
7.3.330.0000.00513.16
7.3.320.0020.00213.11
7.3.310.0070.00016.18
7.3.300.0070.00016.35
7.3.290.0100.00416.20
7.3.280.0080.00916.26
7.3.270.0100.00717.40
7.3.260.0180.00418.24
7.3.250.0130.00616.42
7.3.240.0140.00316.36
7.3.230.0100.00716.42
7.3.210.0100.00716.63
7.3.200.0040.01619.39
7.3.190.0070.01116.41
7.3.180.0080.00816.61
7.3.170.0120.00816.33
7.3.160.0060.01516.34
7.3.130.0000.01715.00
7.3.120.0060.00814.86
7.3.110.0100.01014.97
7.3.100.0030.01014.69
7.3.90.0000.01614.93
7.3.80.0100.00315.13
7.3.70.0040.00814.96
7.3.60.0080.00414.63
7.3.50.0050.00314.72
7.3.40.0030.00915.04
7.3.30.0100.00314.87
7.3.20.0090.00016.63
7.3.10.0070.00416.71
7.3.00.0080.00016.66
7.2.330.0100.01016.72
7.2.320.0100.01316.41
7.2.310.0070.01316.53
7.2.300.0100.00716.56
7.2.290.0130.01016.75
7.2.260.0100.00715.23
7.2.250.0100.01014.91
7.2.240.0000.01515.02
7.2.230.0070.00715.05
7.2.220.0000.01415.09
7.2.210.0030.01314.99
7.2.200.0110.00314.97
7.2.190.0070.00714.84
7.2.180.0060.00615.25
7.2.170.0080.00814.91
7.2.160.0070.00715.18
7.2.150.0040.01117.03
7.2.140.0040.00717.10
7.2.130.0060.00617.05
7.2.120.0040.00716.75
7.2.110.0060.00316.84
7.2.100.0090.00317.04
7.2.90.0070.00317.02
7.2.80.0090.00317.09
7.2.70.0030.01417.07
7.2.60.0060.00617.09
7.2.50.0070.00416.97
7.2.40.0080.00816.86
7.2.30.0060.00916.94
7.2.20.0070.01016.80
7.2.10.0030.01016.72
7.2.00.0110.00316.96
7.1.330.0070.00715.86
7.1.320.0000.01515.86
7.1.310.0060.01015.95
7.1.300.0100.00315.93
7.1.290.0080.00415.52
7.1.280.0040.00415.99
7.1.270.0030.00915.77
7.1.260.0000.01715.70
7.1.250.0040.01115.78
7.1.240.0030.00615.85
7.1.230.0110.00015.61
7.1.220.0040.00415.84
7.1.210.0000.00815.88
7.1.200.0080.00915.61
7.1.190.0060.00315.79
7.1.180.0070.00715.95
7.1.170.0000.01115.69
7.1.160.0070.00715.86
7.1.150.0130.00315.76
7.1.140.0080.00315.69
7.1.130.0060.00815.93
7.1.120.0030.00915.89
7.1.110.0000.01515.96
7.1.100.0070.00715.66
7.1.90.0080.00415.93
7.1.80.0060.00315.73
7.1.70.0050.00516.37
7.1.60.0050.01217.58
7.1.50.0030.01116.19
7.1.40.0030.01015.85
7.1.30.0050.00515.96
7.1.20.0110.00415.78
7.1.10.0080.00315.82
7.1.00.0030.04219.22
7.0.330.0000.01115.48
7.0.320.0030.01015.57
7.0.310.0070.00715.54
7.0.300.0040.00715.38
7.0.290.0070.00315.43
7.0.280.0030.00915.37
7.0.270.0080.00415.46
7.0.260.0040.01115.23
7.0.250.0100.00315.40
7.0.240.0040.00815.34
7.0.230.0040.00415.43
7.0.220.0110.00015.50
7.0.210.0070.00715.55
7.0.200.2050.00515.01
7.0.190.0060.00615.55
7.0.180.0040.01115.14
7.0.170.0100.00615.58
7.0.160.0040.00815.40
7.0.150.0030.00715.32
7.0.140.0060.03618.73
7.0.130.0100.03318.68
7.0.120.0050.03918.76
7.0.110.0040.04218.63
7.0.100.0100.03518.73
7.0.90.0040.04218.53
7.0.80.0000.04518.73
7.0.70.0070.03918.78
7.0.60.0060.04118.73
7.0.50.0050.03818.82
7.0.40.0060.03617.69
7.0.30.0020.03917.79
7.0.20.0030.04017.72
7.0.10.0060.03617.80
7.0.00.0050.03817.78
5.6.400.0060.00614.59
5.6.390.0070.00714.31
5.6.380.0040.00814.63
5.6.370.0040.01214.50
5.6.360.0070.00714.43
5.6.350.0110.00414.21
5.6.340.0060.00314.08
5.6.330.0040.01114.43
5.6.320.0070.00714.68
5.6.310.0040.00414.48
5.6.300.0040.00414.44
5.6.290.0100.00314.30
5.6.280.0050.04017.63
5.6.270.0100.03517.71
5.6.260.0040.03917.74
5.6.250.0050.03617.66
5.6.240.0090.03917.69
5.6.230.0050.04417.58
5.6.220.0060.03717.61
5.6.210.0050.04117.62
5.6.200.0070.03717.77
5.6.190.0030.04317.63
5.6.180.0050.03717.65
5.6.170.0090.03617.72
5.6.160.0050.04017.85
5.6.150.0020.03917.53
5.6.140.0050.04217.70
5.6.130.0040.03917.65
5.6.120.0040.04617.57
5.6.110.0070.04217.51
5.6.100.0020.04617.48
5.6.90.0020.04417.69
5.6.80.0030.04017.21
5.6.70.0060.03717.16
5.6.60.0000.04117.42
5.6.50.0000.04117.27
5.6.40.0020.04217.26
5.6.30.0070.03617.33
5.6.20.0060.03917.16
5.6.10.0100.03117.38
5.6.00.0020.04117.29
5.5.380.0060.03515.88
5.5.370.0040.03515.97
5.5.360.0050.04215.98
5.5.350.0050.03815.78
5.5.340.0060.03816.13
5.5.330.0030.04016.20
5.5.320.0000.03616.33
5.5.310.0030.03816.09
5.5.300.0060.02815.98
5.5.290.0050.04016.22
5.5.280.0050.04316.25
5.5.270.0120.03516.09
5.5.260.0060.04016.30
5.5.250.0030.04216.26
5.5.240.0080.03615.88
5.5.230.0050.04215.84
5.5.220.0050.03815.81
5.5.210.0080.03516.02
5.5.200.0020.03815.74
5.5.190.0020.04215.85
5.5.180.0030.04015.98
5.5.170.0030.00614.32
5.5.160.0020.03715.74
5.5.150.0070.03115.97
5.5.140.0040.03615.81
5.5.130.0020.04215.95
5.5.120.0030.04015.69
5.5.110.0030.03715.83
5.5.100.0040.03715.52
5.5.90.0100.03215.71
5.5.80.0030.03715.81
5.5.70.0040.03715.70
5.5.60.0060.03315.88
5.5.50.0060.03315.70
5.5.40.0030.03715.66
5.5.30.0040.03915.82
5.5.20.0030.04115.71
5.5.10.0040.03915.72
5.5.00.0060.03315.61
5.4.450.0020.04415.23
5.4.440.0060.03715.13
5.4.430.0000.04115.31
5.4.420.0050.03815.34
5.4.410.0060.03315.08
5.4.400.0010.03815.06
5.4.390.0040.03814.96
5.4.380.0030.03615.02
5.4.370.0020.03915.09
5.4.360.0020.04115.29
5.4.350.0080.03315.02
5.4.340.0010.04015.09
5.4.330.0050.00511.08
5.4.320.0070.03515.19
5.4.310.0020.03515.05
5.4.300.0010.04115.09
5.4.290.0040.03915.22
5.4.280.0020.04215.05
5.4.270.0020.03315.01
5.4.260.0050.03515.04
5.4.250.0030.03614.97
5.4.240.0030.03315.11
5.4.230.0020.03515.20
5.4.220.0080.03315.13
5.4.210.0030.03315.07
5.4.200.0030.03415.05
5.4.190.0030.03915.07
5.4.180.0060.03515.01
5.4.170.0050.03515.01
5.4.160.0060.03515.08
5.4.150.0020.04015.18
5.4.140.0060.03613.82
5.4.130.0030.03813.61
5.4.120.0020.03713.64
5.4.110.0040.03513.78
5.4.100.0000.03613.76
5.4.90.0020.03513.71
5.4.80.0050.03513.61
5.4.70.0020.03313.71
5.4.60.0050.03313.79
5.4.50.0070.03213.55
5.4.40.0020.03713.78
5.4.30.0040.03513.65
5.4.20.0020.03513.75
5.4.10.0050.03513.63
5.4.00.0050.03313.51
5.3.290.0040.03712.88
5.3.280.0020.04012.70
5.3.270.0030.03812.79
5.3.260.0000.04012.74
5.3.250.0020.03512.85
5.3.240.0080.03412.80
5.3.230.0030.03612.81
5.3.220.0100.03012.75
5.3.210.0050.03512.76
5.3.200.0010.03912.80
5.3.190.0070.03212.73
5.3.180.0030.03812.80
5.3.170.0030.03512.74
5.3.160.0100.03212.73
5.3.150.0030.03612.82
5.3.140.0050.03212.71
5.3.130.0060.03512.79
5.3.120.0030.03812.71
5.3.110.0030.03812.66
5.3.100.0020.03712.52
5.3.90.0000.03612.41
5.3.80.0050.03512.55
5.3.70.0050.03212.53
5.3.60.0050.03312.54
5.3.50.0020.03712.52
5.3.40.0020.03812.37
5.3.30.0050.03212.39
5.3.20.0070.03012.34
5.3.10.0030.03612.26
5.3.00.0030.03412.26

preferences:
42.4 ms | 401 KiB | 5 Q